monotone-commits-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-commits-diffs] net.venge.monotone: 9f5e8c4a8805b667eccd9e5e71


From: code
Subject: [Monotone-commits-diffs] net.venge.monotone: 9f5e8c4a8805b667eccd9e5e7158e2eb7be7140d
Date: Fri, 4 Feb 2011 16:17:59 GMT

revision:            9f5e8c4a8805b667eccd9e5e7158e2eb7be7140d
date:                2011-02-04T16:17:25
author:              Richard Levitte <address@hidden>
branch:              net.venge.monotone
changelog:
* contrib/bash_completion2 (_monotone): Handle the case where the
  current argtype is '...'.


manifest:
format_version "1"

new_manifest [f8fc94e5b00a8a2c94a608c4c385817253cdc79d]

old_revision [a96c0e477418a3637b2776f2adb9f2f80bd06af7]

patch "contrib/monotone.bash_completion2"
 from [5e4f3ea174bc3a552c1d10eea274871678519c00]
   to [de3207ffd05f4ced688c43a2091e7f595793e1a3]
============================================================
--- contrib/monotone.bash_completion2	5e4f3ea174bc3a552c1d10eea274871678519c00
+++ contrib/monotone.bash_completion2	de3207ffd05f4ced688c43a2091e7f595793e1a3
@@ -669,7 +669,9 @@ _monotone() {
 		elif [ $arg_cword -ge 0 ]; then
 		    local args=( ${_monotone_command_args[$cmd_line]} )
 		    local argtype=${args[$arg_cword]}
-		    if [ -z "$argtype" -a "${args[${#args[*]}-1]}" = "..." ]; then
+		    if [ "$argtype" = "..." ]; then
+			argtype=${args[$arg_cword-1]}
+		    elif [ -z "$argtype" -a "${args[${#args[*]}-1]}" = "..." ]; then
 			argtype=${args[${#args[*]}-2]}
 		    fi
 		    case $argtype in

reply via email to

[Prev in Thread] Current Thread [Next in Thread]