From: Yaroslav Halchenko Date: Mon, 25 Sep 2017 03:17:51 GMT Subject: Re: BUG: merge -s theirs is not in effect (does the same as -s ours) Message-ID: <20170925031751.lg7zk6krt65dxwas@hopa.kiewit.dartmouth.edu> In-Reply-To: On Mon, 25 Sep 2017, Junio C Hamano wrote: > Yaroslav Halchenko writes: > > My interest was to get remote branch "merge" the changes in the > > branch taking the branch's version (primarily alternative symlinks > > for git-annex'ed content) over the version in master (previous > > merge of a similar branch). Unfortunately -s theirs seems to do > > actually -s ours > What does > ls $(git --exec-path) | grep git-merge NB when running git just built, --exec-path reports some non existing dir in ~: $> git --exec-path /home/yoh/libexec/git-core $> ls -l /home/yoh/libexec/git-core ls: cannot access '/home/yoh/libexec/git-core': No such file or directory $> which git /home/yoh/proj/misc/git/git > say? > The official Git never shipped "git-merge-theirs" as far as I know, > and it should not exist (neither should "git merge -s theirs"; you > can use "git reset --hard theirs" instead). d'oh, indeed there is no git-merge-theirs neither in debian pkg or a freshly built git and I found a rogue script in the PATH (which did nothing apparently, sorry!). BUT I was originally mislead by the --help/manpage: MERGE STRATEGIES The merge mechanism (git merge and git pull commands) allows the backend merge strategies to be chosen with -s option. Some strategies can also take their own options, which can be passed by giving -X