Skip to content

Commit

Permalink
Documentation: clarify 'ours' merge strategy
Browse files Browse the repository at this point in the history
Make it clear in the docs that the merge takes the tree of HEAD and
ignores everything in the other branches.  This should hopefully clear
up confusion, usually caused by the user looking for a strategy that
resolves all conflict hunks in favour of HEAD (which is completely
different and currently not supported).

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Thomas Rast authored and Junio C Hamano committed Nov 15, 2009
1 parent 78d553b commit d4cbaa1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Documentation/merge-strategies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ octopus::
pulling or merging more than one branch.

ours::
This resolves any number of heads, but the result of the
merge is always the current branch head. It is meant to
This resolves any number of heads, but the resulting tree of the
merge is always that of the current branch head, effectively
ignoring all changes from all other branches. It is meant to
be used to supersede old development history of side
branches.

Expand Down

0 comments on commit d4cbaa1

Please sign in to comment.