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

Re: feature request: git annotate -w like git blame -w

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 14, 2011, 20:49 UTC
Message-ID
<7vvcqmig52.fsf@alter.siamese.dyndns.org>
In-Reply-To
<m3sjlun4o9.fsf@localhost.localdomain>
Jakub Narebski <jnareb@gmail.com> writes:
Show 13 quoted lines
> "Raoul Bhatia [IPAX]" <r.bhatia@ipax.at> writes:
>
>> is it possible to add a "git annotate -w" option like git blame has?
>
> Why not use "git blame -c -w"?  `-c' turns on annotate-compatibile
> output.
>
> From git-annotate(1) manpage:
>
>    The only difference between this command and git-blame(1) is that they  use
>    slightly  different  output formats, and this command exists only for back-
>    ward compatibility to support existing scripts, and provide a more familiar
>    command name for people coming from other SCM systems.

Somebody may want to compare git-blame.txt and git-annotate.txt in Documentation/, notice that they share blame-options.txt and that the former has accumulated option descriptions for a few more options that should have been placed in blame-options.txt, and then prepare a patch to improve the documentation? Hint, hint...

I *think* '-c', '-f', and '-n' are blame-only options but all others would work with annotate (whoever is doing the patch needs to verify this, though).

Previous: Raoul Bhatia [IPAX]
Message 4 of 4 in “feature request: git annotate -w like git blame -w”
  1. Raoul Bhatia [IPAX]Nov 11, 2011
  2. Jakub NarebskiNov 11, 2011
  3. Raoul Bhatia [IPAX]Nov 14, 2011
  4. Junio C HamanoNov 14, 2011

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.