git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* custom merge driver vs. CONFLICT (delete/modify)
@ 2010-09-25 20:43 Sascha Silbe
  2010-09-26 10:17 ` Jakub Narebski
  2010-09-26 14:37 ` Enrico Weigelt
  0 siblings, 2 replies; 3+ messages in thread
From: Sascha Silbe @ 2010-09-25 20:43 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 1327 bytes --]

Hi!

I am (automatically) building snapshot packages by combining the packaging
maintained in one repository (but also containing sources) with (more
recent) upstream sources from another repository.

For some files (those touched by rerunning auto*) I want the local
version to always take precedence. For some other files (autogen.sh, PO
files) I want the upstream version to take precedence. For all the rest
I want conflicts to produce an error.

This has worked fine so far by using custom merge drivers, but while
adding the second one I encountered a problem: Merge drivers are only
invoked for modify/modify (and maybe add/add) conflicts.
More specifically a delete/modify conflict will cause git-merge to bail
out directly without calling the merge driver to resolve the conflict.
Such a conflict occurred because the packaging people removed autogen.sh
(which is reasonable for them, but not for me).

Is there a way to either resolve all kinds of conflicts in favour of
one side (like -X <side>) or always take one side (like -s <side>) for
a specific set of files?
Alternatively, is there a way to do a merge in multiple "steps",
operating only on a subset of the files each time (so I can use
-s <side> / -X <side> for two of three steps per merge)?

Sascha

--
http://sascha.silbe.org/
http://www.infra-silbe.de/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-27  2:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-25 20:43 custom merge driver vs. CONFLICT (delete/modify) Sascha Silbe
2010-09-26 10:17 ` Jakub Narebski
2010-09-26 14:37 ` Enrico Weigelt

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).