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

Re: [PATCH] git-blame: Use the same tests for git-blame as for git-annotate

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Mar 6, 2006, 00:29 UTC
Message-ID
<46a038f90603051629ke34a0a6u89dad995bbd777b0@mail.gmail.com>
In-Reply-To
<440B751F.5000801@michonline.com>
On 3/6/06, Ryan Anderson <ryan@michonline.com> wrote:
> Along these lines, if anyone can pin down the complicated cases that
> annotate and blame get differently, adding them as a test would be
> *exceedingly* appreciated, even if it makes annotate (or blame) fail for
> a bit, it gives us something to work against.

It would be great if they both worked properly with paths that existed in the past. Right now, I can't git-annotate or git-blame a file I know was there in a past revision. I think I had taught Johannes' annotate to deal with this, or at least intended to. As things stand, git-annotate/git-blame need a checkout, which is really silly.

Tools like gitweb and cvsserver should be able to do:
  GIT_DIR=/somebarerepo/git.git git-(annotate|blame) -h headname Makefile

and not worry about creating a temporary index *and* checking out Makefile so that things work. That's what cvsserver does now, anyway. Ugly :-(

cheers,
m
Previous: Junio C HamanoNext: Ryan Anderson
Message 4 of 19 in “git-blame: Use the same tests for git-blame as for git-annotate”
  1. git-blame: Use the same tests for git-blame as for git-annotateFredrik Kuivinen, Mar 5, 2006
  2. Ryan AndersonMar 5, 2006
  3. Junio C HamanoMar 6, 2006
  4. Martin LanghoffMar 6, 2006
  5. annotate: Support annotation of files on other revisions.Ryan Anderson, Mar 6, 2006
  6. Martin LanghoffMar 6, 2006
  7. Fredrik KuivinenMar 6, 2006
  8. A Large Angry SCMMar 6, 2006
  9. Ryan AndersonMar 6, 2006
  10. Shawn PearceMar 6, 2006
  11. Junio C HamanoMar 6, 2006
  12. Shawn PearceMar 6, 2006
  13. A Large Angry SCMMar 6, 2006
  14. Junio C HamanoMar 6, 2006
  15. Johannes SchindelinMar 6, 2006
  16. Johannes SchindelinMar 6, 2006
  17. Ryan AndersonMar 6, 2006
  18. Ryan AndersonMar 6, 2006
  19. annotate/blame tests updates.Junio C Hamano, Mar 6, 2006

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.