I\'m trying to use git log -L
but I would like to have very limited output (actually just hashes). While --pretty pri
one grep solution is to pipe the output to grep to only print lines matching a commit:
git log -L 10,11:example.txt | grep 'commit \w' -A 4
grep matches the first line of each log entry and the prints the next 4 lines with the -A flag
It's a bit verbose though. Would love to hear if anyone has a better solution!