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

Re: correct git merge behavior or corner case?

From
AMAnders Melchiorsen <mail@cup.kalibalik.dk>
Date
Apr 20, 2009, 10:10 UTC
Message-ID
<41354.bFoQE3daRhY=.1240222235.squirrel@webmail.hotelhot.dk>
In-Reply-To
<alpine.DEB.1.00.0904201148150.6955@intel-tinevez-2-302>
Johannes Schindelin wrote:
> Second, he does not state what he expects to see instead.  And for the
> love of God, I cannot see what should be wrong in the output he gets.
> Another few notches down.
I think that I managed to recreate what he is describing.
#!/bin/bash
cd $(mktemp -d repo.XXXXX)
git init

touch date git add date git commit -memptydate

git branch parallel

touch LICENSE git add LICENSE git commit -mLICENSE

git checkout parallel date >date git add date git commit -mdate

git checkout master git rm date git commit -mnodate

git merge parallel
cat LICENSE
Previous: Johannes SchindelinNext: Jeff King
Message 4 of 17 in “correct git merge behavior or corner case?”
  1. Tuncer AyazApr 19, 2009
  2. Shawn O. PearceApr 20, 2009
  3. Johannes SchindelinApr 20, 2009
  4. Anders MelchiorsenApr 20, 2009
  5. Jeff KingApr 21, 2009
  6. Jeff KingApr 21, 2009
  7. Junio C HamanoApr 21, 2009
  8. Sverre RabbelierApr 21, 2009
  9. Johannes SchindelinApr 21, 2009
  10. Sverre RabbelierApr 21, 2009
  11. Johannes SchindelinApr 21, 2009
  12. Johannes SchindelinApr 21, 2009
  13. Michał KiedrowiczApr 21, 2009
  14. Michał KiedrowiczApr 21, 2009
  15. Jeff KingApr 21, 2009
  16. Michał KiedrowiczApr 21, 2009
  17. Jeff KingApr 21, 2009

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.