X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgit-merge-changelog.c;h=652b40a72d1cc87bf417484f7109632d2ae55f6e;hb=4b6dad7e35019625bd5eb30796beebac099a7422;hp=999407a0c224d73b04b9e843f102abdbd06cdc21;hpb=90735e334e89048c011e5f01eca366f1118bb640;p=gnulib.git diff --git a/lib/git-merge-changelog.c b/lib/git-merge-changelog.c index 999407a0c..652b40a72 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 + + + - 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 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: