git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/2] blame: Make --show-name negatable

From
RKRene Kita <mail@rkta.de>
Date
Sep 12, 2022, 05:45 UTC
Message-ID
<20220912054515.29559-1-mail@rkta.de>

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
Next: Rene Kita
Message 1 of 7 in “blame: Make --show-name negatable”
  1. 0/2 blame: Make --show-name negatableRene Kita, Sep 12, 2022
  2. 2/2 blame: Document that --show-name is negatableRene Kita, Sep 12, 2022
  3. 1/2 blame: Make --show-name negatableRene Kita, Sep 12, 2022
  4. Øystein WalleSep 12, 2022
  5. Junio C HamanoSep 12, 2022
  6. Øystein WalleSep 13, 2022
  7. Rene KitaSep 13, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.