Add 'ours' merge strategy.

This adds the coolest merge strategy ever, "ours".  It can take
arbitrary number of foreign heads and merge them into the
current branch, with the resulting tree always taken from our
branch head, hence its name.

What this means is that you can declare that the current branch
supersedes the development histories of other branches using
this merge strategy.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano
2005-11-01 19:34:49 -08:00
parent 123ee3ca7b
commit 64da9e604e
4 changed files with 10 additions and 2 deletions

View File

@ -14,7 +14,7 @@ usage () {
# all_strategies='resolve recursive stupid octopus'
all_strategies='recursive octopus resolve stupid'
all_strategies='recursive octopus resolve stupid ours'
default_strategies='resolve octopus'
use_strategies=