Re: force a merge conflict

Previous thread: [PATCH (GITK)] gitk: Fix commit encoding support. by Alexander Gavrilov on Sunday, November 9, 2008 - 11:06 am. (4 messages)

Next thread: [PATCH] git send-email: add --body option for --compose by Joe MacDonald on Sunday, November 9, 2008 - 11:29 am. (1 message)
To: <git@...>
Date: Sunday, November 9, 2008 - 11:09 am

is there any way to force a merge conflict?

there are 2 projects which have basically diverged becoming
incompatible, and both have updated since there common ancestry. I'm
working slowing on merging them back together.

in this case I have a dev branch and fork branch the fork is a copy of
dev except I committed one of the files from the fork. I need to merge
this file back into dev, but git thinks it's a fast forward, because
it really is for git, in reality it isn't, both files have newer
history than their common ancestry.

--
Caleb Cushing
--

To: Caleb Cushing <xenoterracide@...>
Cc: <git@...>
Date: Sunday, November 9, 2008 - 2:39 pm

I'm not sure a 'conflict' is what you want, based on what you say below;
rather, it seems you simply want to force a 'merge commit', i.e. a commit with

git merge --no-ff ?

Hope that helps,
Deskin Miller
--

To: Deskin Miller <deskinm@...>
Cc: <git@...>
Date: Sunday, November 9, 2008 - 4:19 pm

I tried that but I don't see that it's any different than a fast
forward in this scenario. Actually I don't see any difference between
it and a fast-forward.
--
Caleb Cushing
--

To: Caleb Cushing <xenoterracide@...>
Cc: Deskin Miller <deskinm@...>, <git@...>
Date: Monday, November 10, 2008 - 3:11 pm

If you want to be given a chance to edit the result before the merge
commit, you probably want 'git merge --no-commit'.

-Brett
--

To: Brett Simmers <swtaarrs@...>
Cc: Deskin Miller <deskinm@...>, <git@...>
Date: Tuesday, November 11, 2008 - 1:10 pm

That's the closest to what I need to do... unfortunately it's not what
I need to do. Apparently I'll have to do a vimdiff outside of git
since git doesn't appear to be capable of doing what I need it to do.

--
Caleb Cushing
--

To: Caleb Cushing <xenoterracide@...>
Cc: <git@...>
Date: Sunday, November 9, 2008 - 4:35 pm

Look at the results of 'git merge' and 'git merge --no-ff' in gitk. Or,
compare the resultant sha1 for the two commit objects. Or, look at 'git log'
of the resulting commit objects, and look for a 'Merge:' line.

Deskin Miller
--

Previous thread: [PATCH (GITK)] gitk: Fix commit encoding support. by Alexander Gavrilov on Sunday, November 9, 2008 - 11:06 am. (4 messages)

Next thread: [PATCH] git send-email: add --body option for --compose by Joe MacDonald on Sunday, November 9, 2008 - 11:29 am. (1 message)