From: Liraz Siri <liraz.siri@gmail.com>
To: git@vger.kernel.org
Subject: git merge bug: creating new files in one branch in a directory that is renamed in another
Date: Sun, 21 Jan 2007 10:20:27 +0200 [thread overview]
Message-ID: <45B3224B.3020800@gmail.com> (raw)
Hey all,
I'm running a few tests to figure out when git does the right thing on
merges, and I've discovered that git does not do the right thing if you
are creating new files in one branch in a directory that is renamed in
another.
Merging edits of files in dir/ in one branch and renaming dir/ to
newdir/ in another branch works, but if you create files in the renamed
dir/ then after the merge they will still remain in dir/, rather than
newdir/.
Here is some example output from a test merge:
$ git-merge XXX HEAD fork
Trying really trivial in-index merge...
fatal: Merge requires file-level merging
Nope.
Merging HEAD with 68aaa44a864cde7a1b83a65a8d5c70cc6c42ac7b
Merging:
85ba656 liraz renamed t to t2
68aaa44 created t/newfile
found 1 common ancestor(s):
9e42cd6 xxx
Merge made by recursive.
t/newfile | 1 +
t2/liraz1 | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
create mode 100644 t/newfile
Cheers,
Liraz
next reply other threads:[~2007-01-21 8:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-21 8:20 Liraz Siri [this message]
2007-01-21 8:44 ` git merge bug: creating new files in one branch in a directory that is renamed in another Shawn O. Pearce
2007-01-21 22:05 ` Johannes Schindelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45B3224B.3020800@gmail.com \
--to=liraz.siri@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).