Re: [IRC/patches] Failed octopus merge does not clean up

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jakub Narebski
Date: Tuesday, September 16, 2008 - 3:53 pm

Dnia wtorek 16. września 2008 02:20, Junio C Hamano napisał:

The problem, as far as I understand it, is not that octopus merge fails.
The problem is that it fails halfway, and it leaves working are in
inconsistent state: git-status output with its "unmerged" suggests that
we are in the middle of the merge, but we are not.


IIRC the idea of stashing away changes, doing merge, and then unstashing
was shot down as encouraging bad workflows, and more often than not
leading only to mess in workdir and index.


IMVHO the correct solution would be to rollback changes to the state
before attempting a merge. I'd rather 'octopus' did its thing as
transaction; contrary to ordinary merges if merge fails it doesn't
mean necessary that it is in the state of resolvable conflict, state
we can stop at. Perhaps (if it is still a shell script, doing git-stash
at beginning, and either dropping or popping the stash at the end;
or just saving old index if it is built-in).


BTW. does it mean that "git merge a b" might be not the same as
"git merge b a"?


Well, octopus merge could simply fail when merge is nontrivial (not
limited to being tree-level merge only).

-- 
Jakub Narebski
Poland
--
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:
[IRC/patches] Failed octopus merge does not clean up, Thomas Rast, (Mon Sep 15, 3:48 pm)
[PATCH] Add test that checks octopus merge cleanup, Thomas Rast, (Mon Sep 15, 3:49 pm)
Re: [IRC/patches] Failed octopus merge does not clean up, Junio C Hamano, (Mon Sep 15, 4:36 pm)
Re: [IRC/patches] Failed octopus merge does not clean up, Junio C Hamano, (Mon Sep 15, 5:20 pm)
Re: [IRC/patches] Failed octopus merge does not clean up, Jakub Narebski, (Tue Sep 16, 3:53 pm)
Re: [IRC/patches] Failed octopus merge does not clean up, Andreas Ericsson, (Tue Sep 16, 11:45 pm)
Re: [IRC/patches] Failed octopus merge does not clean up, Jakub Narebski, (Wed Sep 17, 1:11 am)
Re: [IRC/patches] Failed octopus merge does not clean up, Andreas Ericsson, (Wed Sep 17, 9:40 am)