diff options
author | Brian Gough <bjg@gnu.org> | 2010-08-14 19:57:11 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-08-14 19:57:11 +0200 |
commit | fb0f15d4d3057fd142dcd3d6d86b26ba719a88c2 (patch) | |
tree | 07c33a8545865ddabca032f65d8dcb7058e5bf7a /lib/git-merge-changelog.c | |
parent | 7ba06c8ff37d8725cb824c64b94be41b9294ffb7 (diff) | |
download | gnulib-fb0f15d4d3057fd142dcd3d6d86b26ba719a88c2.tar.gz |
git-merge-changelog: add doc relating to use with bzr and hg.
Diffstat (limited to 'lib/git-merge-changelog.c')
-rw-r--r-- | lib/git-merge-changelog.c | 45 |
1 files changed, 37 insertions, 8 deletions
diff --git a/lib/git-merge-changelog.c b/lib/git-merge-changelog.c index 999407a0c2..652b40a72d 100644 --- a/lib/git-merge-changelog.c +++ b/lib/git-merge-changelog.c @@ -40,23 +40,52 @@ */ /* Installation: + $ gnulib-tool --create-testdir --dir=/tmp/testdir123 git-merge-changelog $ cd /tmp/testdir123 $ ./configure $ make $ make install - - Add to .git/config of the checkout (or to your $HOME/.gitconfig) the lines - [merge "merge-changelog"] - name = GNU-style ChangeLog merge driver - driver = /usr/local/bin/git-merge-changelog %O %A %B + Additionally, for git users: + - Add to .git/config of the checkout (or to your $HOME/.gitconfig) the + lines + + [merge "merge-changelog"] + name = GNU-style ChangeLog merge driver + driver = /usr/local/bin/git-merge-changelog %O %A %B + + - In every directory that contains a ChangeLog file, add a file + '.gitattributes' with this line: + + ChangeLog merge=merge-changelog + + (See "man 5 gitattributes" for more info.) - - In every directory that contains a ChangeLog file, add a file - '.gitattributes' with this line: + Additionally, for bzr users: + - Install the 'extmerge' bzr plug-in listed at + <http://doc.bazaar.canonical.com/plugins/en/index.html> + <http://wiki.bazaar.canonical.com/BzrPlugins> + - Add to your $HOME/.bazaar/bazaar.conf the line - ChangeLog merge=merge-changelog + external_merge = git-merge-changelog %b %T %o + + - Then, to merge a conflict in a ChangeLog file, use + + $ bzr extmerge ChangeLog + + Additionally, for hg users: + - Add to your $HOME/.hgrc a couple of lines in a section [merge-tools]. + See <http://www.selenic.com/mercurial/hgrc.5.html> section merge-tools + for reference. + */ - (See "man 5 gitattributes" for more info.) +/* Use as an alternative to 'diff3': + git-merge-changelog performs the same role as "diff3 -m", just with + reordered arguments: + $ git-merge-changelog %O %A %B + is comparable to + $ diff3 -m %A %O %B */ /* Calling convention: |