How to install and use a custom merge driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>			Melbourne, Australia.
Jabber:  alecclews@xxxxxxxxxxxxx		PGPKey ID: 0x9BBBFC7C
Blog  http://alecthegeek.wordpress.com/

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux