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

Re: Bug in git log

From
Junio C Hamano <junkio@cox.net>
Date
May 2, 2006, 08:24 UTC
Message-ID
<7virooomve.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060502075122.GA8203@spinlock.ch>
Matthias Kestenholz <lists@irregular.ch> writes:
Show 11 quoted lines
> Inside your git source directory, do:
>
> First bug using old whatchanged script (not builtin version)
>
> $ ./git-whatchanged.sh -- unresolve.c
> fatal: ambiguous argument 'unresolve.c': unknown revision or
> filename
> Use '--' to separate filenames from revisions
>
> $ ./git-whatchanged.sh -- -- unresolve.c
> [...] gives the expected output

That indeed sounds funny. I was hoping to see it myself but did not reproduce for me X-<.

Show 5 quoted lines
> $ git log -- unresolve.c
> $ git log -- -- unresolve.c
> $ git whatchanged -- unresolve.c
>
> both give no output.

I do not have an older version between 0.99.9m and 1.3.1, but 1.3.1 (the current stale release) does not seem to have this "double dash" problem. Neither the tonight's "master" version (746437) nor "next".

We used to have a build problem where we forgot to remove libgit.a and an old object from the archive was used by mistake. Could you try rm -f libgit.a and rebuild your git to see if it helps?

Previous: Matthias KestenholzNext: Matthias Kestenholz
Message 2 of 4 in “Bug in git log”
  1. Matthias KestenholzMay 2, 2006
  2. Junio C HamanoMay 2, 2006
  3. Matthias KestenholzMay 2, 2006
  4. Linus TorvaldsMay 2, 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.