Konstantin Ryabitsev wrote:
[..]
> I don't have precise statistics, but I do have firsthand experience trying to
> make this work with git-patch-id, because this is how git-patchwork-bot works,
> and we can't match a significant portion of commits to patches.
What about something like this based on the idea that the same set of
files are almost never being touched at the exact same author-date
second:
time=0
for i in $(git show $1 --pretty=format:"%at" --name-only)
do
if [ $time -eq 0 ]; then
time=1
echo -n "d:$i..$i"
else
echo -n " dfn:$i"
fi
done
echo ""
For example:
$ ./lore.sh f10f46a0ee53420f707195fe33b7c235a1c0e48a
d:1752747497..1752747497 dfn:drivers/cxl/core/mbox.c
dfn:drivers/cxl/core/trace.h dfn:drivers/cxl/cxlmem.h dfn:include/cxl/event.h