3 #=======================================================================
5 # File ID: b72aedb2-f178-11e4-a17f-000df06acc56
7 # Perform Git merges without fast-forwarding. Useful for visualising
13 # git mnff BRANCHNAME STARTREVISION_OF_BRANCH
15 # Author: Øyvind A. Holm <sunny@sunbase.org>
16 # License: GNU General Public License version 2 or later.
17 #=======================================================================
19 git wait-until-clean
-u
25 git
reset --hard $reset
28 if test $
(git log
--format='%h' ..
$branch |
wc -l) -lt 2; then
29 # There is only one commit, use fast-forward if possible
32 # There is more than 1 commit, use --no-ff
33 git merge
--no-ff $branch