Skip to content

Commit c1b0d3a

Browse files
rhansengitster
authored andcommitted
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>
1 parent b9ebb65 commit c1b0d3a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

git-mergetool.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ main () {
421421
prompt=true
422422
;;
423423
-O*)
424-
orderfile="$1"
424+
orderfile="${1#-O}"
425425
;;
426426
--)
427427
shift
@@ -465,7 +465,7 @@ main () {
465465

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

470470
cd_to_toplevel
471471

0 commit comments

Comments
 (0)