summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cc21682)
raw | patch | inline | side by side (parent: cc21682)
author | Junio C Hamano <gitster@pobox.com> | |
Sun, 23 Dec 2007 07:14:59 +0000 (23:14 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 23 Dec 2007 07:14:59 +0000 (23:14 -0800) |
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-check-attr.txt | patch | blob | history | |
Documentation/git-merge.txt | patch | blob | history | |
Documentation/gitattributes.txt | patch | blob | history |
index 856d2af2ed9c1ccfcd819191060447b62e49b8b6..47cb1bdfa3d741a42c73d5234317ed68f1f90d5c 100644 (file)
be treated as an attribute.
+SEE ALSO
+--------
+gitlink:gitattributes[5].
+
+
Author
------
Written by Junio C Hamano <junkio@cox.net>
index eabd7ef33f6c01322fc3794341c8982573b516a4..1521a9ee0fec3a825bdbade4869012b7c3cf3bf7 100644 (file)
SEE ALSO
--------
-gitlink:git-fmt-merge-msg[1], gitlink:git-pull[1]
+gitlink:git-fmt-merge-msg[1], gitlink:git-pull[1],
+gitlink:gitattributes[5]
Author
index 71c7ad76d57f5ce89206ccbc8f4c66cadd8f7743..cc9c7c52c006cb81987a996d65595d99653dfefe 100644 (file)
requested with "binary".
+Built-in merge drivers
+^^^^^^^^^^^^^^^^^^^^^^
+
+There are a few built-in low-level merge drivers defined that
+can be asked for via the `merge` attribute.
+
+text::
+
+ Usual 3-way file level merge for text files. Conflicted
+ regions are marked with conflict markers `<<<<<<<`,
+ `=======` and `>>>>>>>`. The version from your branch
+ appears before the `=======` marker, and the version
+ from the merged branch appears after the `=======`
+ marker.
+
+binary::
+
+ Keep the version from your branch in the work tree, but
+ leave the path in the conflicted state for the user to
+ sort out.
+
+union::
+
+ Run 3-way file level merge for text files, but take
+ lines from both versions, instead of leaving conflict
+ markers. This tends to leave the added lines in the
+ resulting file in random order and the user should
+ verify the result. Do not use this if you do not
+ understand the implications.
+
+
Defining a custom merge driver
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-The definition of a merge driver is done in `gitconfig` not
-`gitattributes` file, so strictly speaking this manual page is a
-wrong place to talk about it. However...
+The definition of a merge driver is done in the `.git/config`
+file, not in the `gitattributes` file, so strictly speaking this
+manual page is a wrong place to talk about it. However...
To define a custom merge driver `filfre`, add a section to your
`$GIT_DIR/config` file (or `$HOME/.gitconfig` file) like this: