X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=git-merge-ff;h=40bcaa19071dcff695404c6b87009725353cb140;hb=7072dd6217d2a600f729188624f228b5700bd836;hp=46a394c4713c9b2d05649ed9ca188ddc21ae2582;hpb=c520e5044ed0706efe05c926518c0e3e98c6236e;p=bin.git diff --git a/git-merge-ff b/git-merge-ff index 46a394c..40bcaa1 100755 --- a/git-merge-ff +++ b/git-merge-ff @@ -24,7 +24,7 @@ _merge_ff() { fi if [ "$(git symbolic-ref HEAD)" = "refs/heads/$branch" ]; then - git merge $quiet --ff-only "$commit" + git merge $quiet --ff-only "$commit" -- else if [ "$(git merge-base $branch_orig_hash $commit_orig_hash)" != "$branch_orig_hash" ]; then echo "Error: merging $commit into $branch would not be a fast-forward" 1>&2 @@ -34,7 +34,7 @@ _merge_ff() { if git update-ref -m "merge $commit: Fast forward" "refs/heads/$branch" "$commit_orig_hash" "$branch_orig_hash"; then if [ -z $quiet ]; then echo "Fast forward" - git diff --stat "$branch@{1}" "$branch" + git diff --stat "$branch@{1}" "$branch" -- fi else echo "Error: fast forward using update-ref failed" 1>&2 @@ -53,4 +53,4 @@ shift $((OPTIND-1)) case $# in 2 ) _merge_ff "$1" "$2";; * ) _usage -esac \ No newline at end of file +esac