All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG] git log -L ... -s does not suppress diff output
@ 2019-02-25 17:03 Matthew Booth
  2019-02-25 17:18 ` Jeff King
  0 siblings, 1 reply; 6+ messages in thread
From: Matthew Booth @ 2019-02-25 17:03 UTC (permalink / raw)
  To: git

Example output:

=========
$ git --version
git version 2.20.1

$ git log -L 2957,3107:nova/compute/manager.py -s
commit 35ce77835bb271bad3c18eaf22146edac3a42ea0
<snip>

diff --git a/nova/compute/manager.py b/nova/compute/manager.py
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -2937,152 +2921,151 @@
     def rebuild_instance(self, context, instance, orig_image_ref, image_ref,
                          injected_files, new_pass, orig_sys_metadata,
<snip>
=========

git log docs suggest it should not do this:

       -s, --no-patch
           Suppress diff output. Useful for commands like git show
that show the patch by default, or to cancel
           the effect of --patch.

Couldn't find anything in a search of the archives of this mailing
list, although that's obviously far from conclusive. Seems to be
longstanding, as it was mentioned on StackOverflow back in 2015:

https://stackoverflow.com/questions/31709785/git-line-log-git-l-suppress-diff

Matt
-- 
Matthew Booth
Red Hat OpenStack Engineer, Compute DFG

Phone: +442070094448 (UK)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-02-25 18:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-25 17:03 [BUG] git log -L ... -s does not suppress diff output Matthew Booth
2019-02-25 17:18 ` Jeff King
2019-02-25 17:32   ` [PATCH] line-log: suppress diff output with "-s" Jeff King
2019-02-25 17:59     ` SZEDER Gábor
2019-02-25 18:55       ` Jeff King
2019-02-25 18:46   ` [BUG] git log -L ... -s does not suppress diff output Randall S. Becker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.