]> git.neil.brown.name Git - wiggle.git/commitdiff
manpage: add notes about how to integrate with git.
authorNeilBrown <neilb@suse.de>
Wed, 21 Aug 2013 02:34:33 +0000 (12:34 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 21 Aug 2013 02:34:33 +0000 (12:34 +1000)
Signed-off-by: NeilBrown <neilb@suse.de>
wiggle.1

index 5da108ed6c1941ec3ebc65e2d69de1c3f2aa83bb..858b3d1daf7e9758b2c3e046df74f73340175f80 100644 (file)
--- a/wiggle.1
+++ b/wiggle.1
@@ -555,7 +555,7 @@ rejects a patch, it does so for a good reason.  Even though
 may be able to find a believable place to apply each textual change,
 there is no guarantee that the result is correct in any semantic
 sense.  The result should always be inspected to make sure it is
-correct. 
+correct.
 
 .SH EXAMPLES
 
@@ -593,6 +593,37 @@ Parse the
 file for patches and present a list of patched files which can be
 browsed to examine each patch in detail.
 
+.I wiggle
+can be integrated with
+.I git
+so that it is used as the default merge tool. This can be achieved by
+adding the following lines to
+.B .gitconfig
+in the user's home directory.
+
+.RS 4
+.nf
+[merge "wiggle"]
+       name = "Wiggle flexible merging"
+       driver = /usr/bin/wiggle \-\-report\-wiggles \-r %A %O %B
+       recursive = binary
+[merge]
+       tool = wiggle
+[mergetool "wiggle"]
+       path = /usr/bin/wiggle
+       cmd = wiggle \-Br $LOCAL $BASE $REMOTE
+.fi
+.RE
+
+and then adding
+.RS 4
+* merge=wiggle
+.RE
+to
+.BR $HOME/.config/git/attributes .
+
+
+
 .SH QUOTE
 The name of
 .I wiggle
@@ -636,4 +667,6 @@ and later and SUSE, still in Sydney, Australia.
 .IR diff (1),
 .IR merge (1),
 .IR wdiff (1),
-.IR diff3 (1).
+.IR diff3 (1),
+.IR git-config (1),
+.IR gitattributes (5).