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

[PATCH 0/3] fixing some random blame corner cases

From
Jeff King <peff@peff.net>
Date
Jan 6, 2017, 04:15 UTC
Message-ID
<20170106041541.rjzzofal5hscv6yi@sigill.intra.peff.net>

Here are three fixes for some fairly obscure corner cases. I haven't actually seen these in the wild. I came up with the final one while discussing a hypothetical with somebody, then ran across the middle one while trying to write a test for the third, which made me scratch my head enough to yield the first one. Classic yak-shaving.

One other thing that surprised me while writing blame tests is that "--root" is not the default for git-blame (though it has been for many years in git-log). I'm not sure if it would be a good idea to change it, or if blame is too plumbing-ish to allow that.

  [1/3]: blame: fix alignment with --abbrev=40
  [2/3]: blame: handle --no-abbrev
  [3/3]: blame: output porcelain "previous" header for each file
 builtin/blame.c             |  27 ++++++----
 t/t8002-blame.sh            |  32 ++++++++++++
 t/t8011-blame-split-file.sh | 117 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 166 insertions(+), 10 deletions(-)
 create mode 100755 t/t8011-blame-split-file.sh
-Peff
Next: Jeff King
Message 1 of 8 in “fixing some random blame corner cases”
  1. 0/3 fixing some random blame corner casesJeff King, Jan 6, 2017
  2. 2/3 blame: handle --no-abbrevJeff King, Jan 6, 2017
  3. 1/3 blame: fix alignment with --abbrev=40Jeff King, Jan 6, 2017
  4. 3/3 blame: output porcelain "previous" header for each fileJeff King, Jan 6, 2017
  5. Junio C HamanoJan 9, 2017
  6. Ævar Arnfjörð BjarmasonMar 27, 2017
  7. Jeff KingMar 27, 2017
  8. Junio C HamanoJan 8, 2017

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.