diff options
author | Junio C Hamano <junio@hera.kernel.org> | 2007-12-23 08:16:38 +0000 |
---|---|---|
committer | Junio C Hamano <junio@hera.kernel.org> | 2007-12-23 08:16:38 +0000 |
commit | f556fc2a7c28ca2b4097c2c8b0180de3b8ca7238 (patch) | |
tree | 492751e5dfadd3be5f438844968502b050c72c54 /gitattributes.txt | |
parent | e27cbd23f20512f381606e2b437bfe80c681aa93 (diff) | |
download | git-htmldocs-f556fc2a7c28ca2b4097c2c8b0180de3b8ca7238.tar.gz |
Autogenerated HTML docs for v1.5.4-rc1-21-g0e545
Diffstat (limited to 'gitattributes.txt')
-rw-r--r-- | gitattributes.txt | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/gitattributes.txt b/gitattributes.txt index 71c7ad76d..cc9c7c52c 100644 --- a/gitattributes.txt +++ b/gitattributes.txt @@ -322,12 +322,43 @@ String:: 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: |