mergetool: take the "-O" out of $orderfile

This will make it easier for a future commit to convert a relative
orderfile pathname to either absolute or relative to the top-level
directory.  It also improves code readability.

Signed-off-by: Richard Hansen <hansenr@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Richard Hansen 2017-01-10 15:42:01 -05:00 committed by Junio C Hamano
parent b9ebb65926
commit c1b0d3a010
1 changed files with 2 additions and 2 deletions

View File

@ -421,7 +421,7 @@ main () {
prompt=true prompt=true
;; ;;
-O*) -O*)
orderfile="$1" orderfile="${1#-O}"
;; ;;
--) --)
shift shift
@ -465,7 +465,7 @@ main () {


files=$(git -c core.quotePath=false \ files=$(git -c core.quotePath=false \
diff --name-only --diff-filter=U \ diff --name-only --diff-filter=U \
${orderfile:+"$orderfile"} -- "$@") ${orderfile:+"-O$orderfile"} -- "$@")


cd_to_toplevel cd_to_toplevel