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

Re: Deleted file is back - how to investigate?

From
CKChristof Krüger <git@christof-krueger.de>
Date
Jun 26, 2011, 21:12 UTC
Message-ID
<1309122744.11860.121.camel@oxylap>
In-Reply-To
<20110626202532.GS30255@genesis.frugalware.org>
On So, 2011-06-26 at 22:25 +0200, Miklos Vajna wrote:
Show 6 quoted lines
> Hi Chris,
> 
> Great, --graph indeed lists two merge commits, and if I check the tree
> objects manually, I can see which one introduced the file. But I still
> don't really understand --name-status why don't show the addition of
> those files, given that I hoped this counts as an "evil merge".

As I understand it, --name-status doesn't play any role in choosing the commits that are interesting for the "git log <path>" command.

To speak in the terminology used in the history simplification section
of "man git":  What you want is to show all commits that are NOT
TREESAME to _at least_ one parent, whereas git gives you only commits
that are NOT TREESAME to ANY parent.
 
From my current understanding of history simplification, I don't see any
way to directly achieve this. The default mode does not include merge
commits if at least one parent is TREESAME. The --full-history option
only changes which parents are followed, but doesn't change whether a
merge is included or not. Parent rewriting unconditionally includes all
merges, even the ones that are TREESAME wrt all parents.

So do i conclude correctly, that this is a missing feature in git? Is there something I have overlooked?

Regards,
  Chris
Previous: Andreas Schwab
Message 5 of 5 in “Deleted file is back - how to investigate?”
  1. Miklos VajnaJun 26, 2011
  2. Christof KrügerJun 26, 2011
  3. Miklos VajnaJun 26, 2011
  4. Andreas SchwabJun 26, 2011
  5. Christof KrügerJun 26, 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.