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

Re: git log broken?

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Sep 22, 2010, 08:15 UTC
Message-ID
<4C99BB1B.90101@drmicha.warpmail.net>
In-Reply-To
<20100922094808.07be1757@explosive.nyblom.org>
Torgny Nyblom venit, vidit, dixit 22.09.2010 09:48:
Show 20 quoted lines
> Hi,
> 
> (Resend as it got no replies and I want to be sure that is wasn't lost
> in the noise)
> 
> I'm working on converting the KDE subversion repository to git, as
> a part of this I'm trying to validate that the conversion hasn't missed
> any revisions or merges but when I run "git log" with different options
> I get (in my mind) strange results.
> 
> git log <file> -> produces a list of commits
> git log --follow <file> -> produces an empty list (no output)
> git log --name-status <file> -> no info about file
> 
> It seems like this occurs when there is a merge only commit as the
> first commit in the list returned by the "bare" log command.
> 
> Is there any legit situation where this might happen?
> If so what?
> If not is this a bug in my convert program or in git?

Can you share this repo or (even better) create a minimal test which reproduces this?

Trying with a recent git and "some" merge commit I don't see that behaviour.

Note that, e.g., subversion needs to create commits for each tag which git-svn turns into "no-op" commits (introducing no diff). They can disappear easily if your conversion process involves rebasing or filter-branching. (I'd recommend converting those commits into annotated tags.)

Michael
Previous: Matthieu Moy
Message 3 of 3 in “git log broken?”
  1. Torgny NyblomSep 22, 2010
  2. Matthieu MoySep 22, 2010
  3. Michael J GruberSep 22, 2010

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.