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

Re: [PATCH v2] blame: Add option to show author email instead of name

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Oct 21, 2010, 20:32 UTC
Message-ID
<20101021203210.GA12685@burratino>
In-Reply-To
<79AB0864-E151-468E-9C86-EBCAD929938B@sb.org>
Kevin Ballard wrote:
> On Oct 21, 2010, at 11:05 AM, Jonathan Nieder wrote:
Show 12 quoted lines
>> Bonus nit: does this belong in annotate-tests.sh or does it only apply
>> to "git blame" and not "git annotate"?  If the latter, a note in the
>> commit message would be helpful.
>
> --show-email originally only applied to git-blame. I tweaked the
> patch to make it apply to git-annotate simply because check_count
> can't handle the format of git-blame, but the intention of the
> change wasn't to make it apply to git-annotate in the first place.
> You'll note I also didn't document it in the manpage for
> git-annotate. If you think it's better to move it into
> annotate-tests.sh, I can do that, but that does mean officially
> declaring git-annotate as supporting --show-email.

No preference, since I never use "git annotate" myself. In fact, long term, I'd rather see a "git blame --format=<template>" appearing and "git annotate" replaced with a thin script wrapping "git blame".

Anyway, whatever you decide, it would be nice to document it in the commit message, no? e.g.:

	The tests and documentation only affect "git blame",
	because...
Previous: Kevin BallardNext: Kevin Ballard
Message 6 of 11 in “blame: Add option to show author email instead of name”
  1. blame: Add option to show author email instead of nameKevin Ballard, Oct 16, 2010
  2. Junio C HamanoOct 19, 2010
  3. blame: Add option to show author email instead of nameKevin Ballard, Oct 20, 2010
  4. Jonathan NiederOct 21, 2010
  5. Kevin BallardOct 21, 2010
  6. Jonathan NiederOct 21, 2010
  7. Kevin BallardOct 21, 2010
  8. blame: Add option to show author email instead of nameKevin Ballard, Oct 21, 2010
  9. Jeff KingOct 21, 2010
  10. Kevin BallardOct 21, 2010
  11. Jeff KingOct 21, 2010

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.