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

Re: 'git log --source' seems to fail to show ref name after the first tag comes out.

From
RRaymundo <gypark@gmail.com>
Date
Nov 25, 2015, 14:00 UTC
Message-ID
<CAAe7MbDu-Z7585A6tDcFg78pRrnDjvmdZV7oqGkqO8XchZUzaA@mail.gmail.com>
In-Reply-To
<20151125125956.GC4504@sigill.intra.peff.net>
2015-11-25 21:59 GMT+09:00 Jeff King <peff@peff.net>:
Show 25 quoted lines
>
> Sounds like a good opportunity to use git-bisect. I came up with 2073949
> (traverse_commit_list: support pending blobs/trees with paths,
> 2014-10-15) from git v2.2.0, which unfortunately was written by me. :)
>
> This one-liner seems to fix it:
>
> diff --git a/revision.c b/revision.c
> index af2a18e..d434b8b 100644
> --- a/revision.c
> +++ b/revision.c
> @@ -297,7 +297,6 @@ static struct commit *handle_commit(struct rev_info *revs,
>                  * through to the non-tag handlers below. Do not
>                  * propagate data from the tag's pending entry.
>                  */
> -               name = "";
>                 path = NULL;
>                 mode = 0;
>         }
>
> But I'm not sure if it causes other problems. In particular, I see why
> we would not propagate a path field, but I do not know why the original
> was avoiding propagating the name field.
>
> -Peff
It's a good news that you found the reason so soon.
I'd like to wait for next version :-)
Thank you!
Previous: Jeff King
Message 3 of 3 in “'git log --source' seems to fail to show ref name after the first tag comes out.”
  1. RaymundoNov 25, 2015
  2. Jeff KingNov 25, 2015
  3. RaymundoNov 25, 2015

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.