]> asedeno.scripts.mit.edu Git - git.git/blobdiff - Documentation/git-merge-file.txt
Merge branch 'sp/maint-describe-tiebreak-with-tagger-date' into maint
[git.git] / Documentation / git-merge-file.txt
index fa723d0513c5ca825a53508dc82990506f486638..f334d694e0160df91d197293e5b76cc0bfaac187 100644 (file)
@@ -10,7 +10,8 @@ SYNOPSIS
 --------
 [verse]
 'git merge-file' [-L <current-name> [-L <base-name> [-L <other-name>]]]
-       [-p|--stdout] [-q|--quiet] <current-file> <base-file> <other-file>
+       [--ours|--theirs|--union] [-p|--stdout] [-q|--quiet] [--marker-size=<n>]
+       <current-file> <base-file> <other-file>
 
 
 DESCRIPTION
@@ -34,7 +35,10 @@ normally outputs a warning and brackets the conflict with lines containing
        >>>>>>> B
 
 If there are conflicts, the user should edit the result and delete one of
-the alternatives.
+the alternatives.  When `--ours`, `--theirs`, or `--union` option is in effect,
+however, these conflicts are resolved favouring lines from `<current-file>`,
+lines from `<other-file>`, or lines from both respectively.  The length of the
+conflict markers can be given with the `--marker-size` option.
 
 The exit value of this program is negative on error, and the number of
 conflicts otherwise. If the merge was clean, the exit value is 0.
@@ -62,6 +66,12 @@ OPTIONS
 -q::
        Quiet; do not warn about conflicts.
 
+--ours::
+--theirs::
+--union::
+       Instead of leaving conflicts in the file, resolve conflicts
+       favouring our (or their or both) side of the lines.
+
 
 EXAMPLES
 --------