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

Re: new behaviour in git merge

From
Jeff King <peff@peff.net>
Date
Feb 24, 2011, 08:15 UTC
Message-ID
<20110224081553.GD25595@sigill.intra.peff.net>
In-Reply-To
<20110224143353.ddaa316a.sfr@canb.auug.org.au>
On Thu, Feb 24, 2011 at 02:33:53PM +1100, Stephen Rothwell wrote:
Show 11 quoted lines
> I am not sure when this started, but I think git has changed its behaviour
> when merging.   As you all know, I do a lot of merging of trees for
> linux-next each day.  Today I noticed that when I merge a tree, sometimes
> the timestamps are modified for files that are not modified on one side
> of the merge.  It is not consistent and it is not all the files that are
> modified on the HEAD side (relative to the merge-base).
>
> [...]
>
> I am pretty sure that git did not used to do this. Has anyone else seen
> this?  I am running git version 1.7.4.1 from Debian unstable.

I don't think any such change was intentional. I couldn't reproduce with a trivial example. Can you give the commit IDs of the two heads in your example merge? I'd like to try bisecting if I can reproduce the issue.

-Peff
Previous: Stephen RothwellNext: Stephen Rothwell
Message 2 of 8 in “new behaviour in git merge”
  1. Stephen RothwellFeb 24, 2011
  2. Jeff KingFeb 24, 2011
  3. Stephen RothwellFeb 24, 2011
  4. Jeff KingFeb 24, 2011
  5. 0/2 Fix unnecessary updates of files during mergeElijah Newren, Feb 26, 2011
  6. 1/2 t6022: New test checking for unnecessary updates of renamed+modified filesElijah Newren, Feb 26, 2011
  7. 2/2 merge-recursive: When we detect we can skip an update, actually skip itElijah Newren, Feb 26, 2011
  8. Elijah NewrenFeb 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.