Re: [PATCH 2/3] merge-recursive: Small code cleanup

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Camille Moncelier
Date: Thursday, October 21, 2010 - 12:43 pm

On Thu, 9 Sep 2010 13:23:26 -0700
"Schalk, Ken" <ken.schalk@intel.com> wrote:

Hello, I think I have a test case that seems to be related to this
issue.

mkdir -p repo1
pushd repo1
git init .

mkdir dir1
echo file1 > dir1/file1
ln -s dir1 dir2
git add dir1 dir2
git commit -m "Initial status: dir2 -> dir1"

git checkout -b test1
git checkout -b test2

git co test1
git rm dir2
mkdir dir2
touch file2 > dir2/file1
git add dir2/file1
git commit -m "Removing link: dir1/ and dir2/"

message="New file in test1"
echo $message > new_file_test1
git add new_file_test1
git commit -m "$message"

git co test2
message="New file in test2"
echo $message > new_file_test2
git add new_file_test2
git commit -m "$message"

# Tries to get the last commit (which adds new_file_test1)
# into test2 fails.
git cherry-pick test1

# Would work with: git cherry-pick --strategy=resolve test1 
# (using 1.7.3.1) 



--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/3] merge-recursive: Small code cleanup, Elijah Newren, (Mon Sep 6, 1:47 pm)
Re: [PATCH 2/3] merge-recursive: Small code cleanup, Elijah Newren, (Mon Sep 6, 2:25 pm)
Re: [PATCH 2/3] merge-recursive: Small code cleanup, Junio C Hamano, (Mon Sep 6, 4:49 pm)
RE: [PATCH 2/3] merge-recursive: Small code cleanup, Schalk, Ken, (Tue Sep 7, 9:23 am)
Re: [PATCH 2/3] merge-recursive: Small code cleanup, Elijah Newren, (Tue Sep 7, 11:24 pm)
RE: [PATCH 2/3] merge-recursive: Small code cleanup, Schalk, Ken, (Thu Sep 9, 1:23 pm)
Re: [PATCH 2/3] merge-recursive: Small code cleanup, Camille Moncelier, (Thu Oct 21, 12:43 pm)