git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] blame: Make --show-name negatable
@ 2022-09-12  5:45 Rene Kita
  2022-09-12  5:45 ` [PATCH 1/2] " Rene Kita
  2022-09-12  5:45 ` [PATCH 2/2] blame: Document that --show-name is negatable Rene Kita
  0 siblings, 2 replies; 7+ messages in thread
From: Rene Kita @ 2022-09-12  5:45 UTC (permalink / raw)
  To: git; +Cc: Rene Kita

With -s git blame does not show author and date, but will show the file name
if the file was renamed some time in the past. With -c git blame will
not show the name, even if the file was renamed, but will show author
and date.

Working with a code base that already uses long lines and has a deep
nested directory structure the output of git blame gets hard to read due
to line wrapping.

While looking for a solution on IRC a user was so nice to gave me a
patch (and permission to submit it) that allows to disable showing of
the file name even if the file was renamed. This allows to show only the
commit id with `git blame -s --no-show-name`.

The second patch only adds this informations to the man page.


Rene Kita (1):
  blame: Document that --show-name is negatable

Øystein Walle (1):
  blame: Make --show-name negatable

 Documentation/git-blame.txt | 2 +-
 builtin/blame.c             | 9 +++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

-- 
2.37.3.544.g5c9b9c0a4e


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

end of thread, other threads:[~2022-09-13  9:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-12  5:45 [PATCH 0/2] blame: Make --show-name negatable Rene Kita
2022-09-12  5:45 ` [PATCH 1/2] " Rene Kita
2022-09-12 13:25   ` Øystein Walle
2022-09-12 16:30     ` Junio C Hamano
2022-09-13  8:56       ` Øystein Walle
2022-09-13  9:08         ` Rene Kita
2022-09-12  5:45 ` [PATCH 2/2] blame: Document that --show-name is negatable Rene Kita

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).