I\'m trying to use git log -L
but I would like to have very limited output (actually just hashes). While --pretty pri
The -L
option is not currently (and apparently never was) compatible with -s
/ --no-patch
, because of this code called from line_log_print, called from the top of log_tree_commit when -L
is in effect. Said code simply outputs the entire chosen line-range from any matched commit. (You could patch the hack to obey the diff output options, perhaps.)
(The other obvious workaround would be to use git rev-list
instead of git log
, except that -L
is, as that first link notes, not properly integrated in the first place, so that git rev-list
does not handle it.)