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

Re: git annotate with date option not working?

From
CDChengwei Ding <waterding@gmail.com>
Date
Jun 1, 2011, 16:28 UTC
Message-ID
<1805632198775747949@unknownmsgid>
In-Reply-To
<20110601161638.GB7132@sigill.intra.peff.net>

Thx Peff, this really helps. So then doc on this cmd is outdated. Have been used to emacs build-in vc which call annotate (rumor say it will support git blame), anyway, have switch to other emacs git plugin now.

Thanks
发自我的 iPhone
在 Jun 1, 2011,18:16,Jeff King <peff@peff.net> 写道:
Show 27 quoted lines
> On Wed, Jun 01, 2011 at 10:20:37AM +0200, Chengwei Ding wrote:
>
>> can anyone confirm that this "--date" option is working for git
>> annotate cmd.
>
> This is by design:
>
>  $ git show 31653c1abc1ac80206db9efca56ff1969150d8fe
>  Author: Eugene Letuchy <eugene@facebook.com>
>  Date:   Fri Feb 20 14:51:11 2009 -0800
>  [...]
>      git annotate ignores the date format specifiers and continues to
>      uses the ISO format, as before.
>  [...]
>  +       if (cmd_is_annotate) {
>                  output_option |= OUTPUT_ANNOTATE_COMPAT;
>  +               blame_date_mode = DATE_ISO8601;
>  +       } else {
>  +               blame_date_mode = revs.date_mode;
>  +       }
>
> The annotate command is a historical artifact, and will remain frozen in
> time in terms of output format and features. If you want to use newer
> features, use "git blame". If you really need the annotate output format
> with newer blame features, use "git blame -c".
>
> -Peff
Previous: Jeff KingNext: Jeff King
Message 7 of 9 in “git annotate with date option not working?”
  1. Chengwei DingJun 1, 2011
  2. Jakub NarebskiJun 1, 2011
  3. Chengwei DingJun 1, 2011
  4. Arnaud LacurieJun 1, 2011
  5. Chengwei DingJun 1, 2011
  6. Jeff KingJun 1, 2011
  7. Chengwei DingJun 1, 2011
  8. Jeff KingJun 1, 2011
  9. Jonathan NiederJun 1, 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.