From: Alec Clews <alec.clews@gmail.com>
To: git@vger.kernel.org
Subject: How to install and use a custom merge driver
Date: Wed, 28 Jan 2009 14:10:18 +1100 [thread overview]
Message-ID: <497FCC9A.9080008@gmail.com> (raw)
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/
next reply other threads:[~2009-01-28 3:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-28 3:10 Alec Clews [this message]
2009-01-28 6:18 ` How to install and use a custom merge driver 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=497FCC9A.9080008@gmail.com \
--to=alec.clews@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).