git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to install and use a custom merge driver
@ 2009-01-28  3:10 Alec Clews
  2009-01-28  6:18 ` Jeff King
  0 siblings, 1 reply; 9+ messages in thread
From: Alec Clews @ 2009-01-28  3:10 UTC (permalink / raw)
  To: git

Background:

I want to use git to track the delivery of patch files into existing 
file trees. This means that new files will need to be copied over 
existing files (especially in the case of binary files or textual conflicts)

To this end I want to use a custom merge driver (actually the cp command)

Setup:

I have set up my ..git/info/gitattributes as follows

*      merge=overwrite

I have defined in .git/config

[merge "overwrite"]
    name = overwrite using cp
    driver = cp %B %A

Problem:

However when I perform a git merge the default merge is being called. Is 
there something else needed to make git perform the copy operation?


Many thanks

-- 
Alec Clews
Personal <alec.clews@gmail.com>			Melbourne, Australia.
Jabber:  alecclews@jabber.org.au		PGPKey ID: 0x9BBBFC7C
Blog  http://alecthegeek.wordpress.com/

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

end of thread, other threads:[~2009-01-29  7:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-28  3:10 How to install and use a custom merge driver Alec Clews
2009-01-28  6:18 ` Jeff King
2009-01-28 23:04   ` Alec Clews
2009-01-28 23:31     ` Alec Clews
2009-01-29  3:25     ` Jeff King
2009-01-29  4:47       ` Alec Clews
2009-01-29  5:03         ` Jeff King
2009-01-29  7:00           ` Alec Clews
2009-01-29  7:11             ` Jeff King

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