3 . /sys/lib/git/common.rc
6 ourbr=$gitfs/object/$1/tree
7 basebr=$gitfs/object/$2/tree
8 theirbr=$gitfs/object/$3/tree
10 all=`$nl{{git/query -c $1 $2; git/query -c $2 $3} | sed 's/^..//' | sort | uniq}
15 merge1 ./$f $theirs $base $ours
21 flagfmt=''; args='theirs'
22 eval `''{aux/getflags $*} || exec aux/usage
27 theirs=`{git/query $1}
28 ours=`{git/query HEAD}
29 base=`{git/query $theirs ^ ' ' ^ $ours ^ '@'}
32 die 'nothing to merge, doofus'
34 die 'dirty work tree, refusing to merge'
36 >[1=2] echo 'fast forwarding...'
37 echo $theirs > .git/refs/`{git/branch}
41 echo $ours >> .git/index9/merge-parents
42 echo $theirs >> .git/index9/merge-parents
44 merge $ours $base $theirs
45 >[1=2] echo 'merge complete: remember to commit'