OSDN Git Service

Complete git submodule add option argument w/o =
authormagicant <magicant@048f04df-13f5-43d7-8114-9f9ceecaec24>
Fri, 11 Nov 2016 15:06:26 +0000 (15:06 +0000)
committermagicant <magicant@048f04df-13f5-43d7-8114-9f9ceecaec24>
Fri, 11 Nov 2016 15:06:26 +0000 (15:06 +0000)
Git requires separate argument for some options.

git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/yash/yash/trunk@3734 048f04df-13f5-43d7-8114-9f9ceecaec24

NEWS
NEWS.ja
share/completion/git-submodule

diff --git a/NEWS b/NEWS
index c114b90..09a79b9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,7 @@ History of Yash
 Yash 2.44
 
   +  Command line prediction and the '--le-predict' option.
+  *  Updated completion script for: git-submodule
   *  The "return" built-in was wrongly refusing to return from a
      script sourced by the "." built-in in an interactive shell.
   *  In the "test" built-in, the unary "-o" operator was returning the
diff --git a/NEWS.ja b/NEWS.ja
index e715e1f..a944a04 100644 (file)
--- a/NEWS.ja
+++ b/NEWS.ja
@@ -11,6 +11,7 @@ Yash 更新履歴
 Yash 2.44
 
   +  コマンドライン推定と '--le-predict' オプション
+  *  補完スクリプトを修正: git-submodule
   *  対話シェルで "." 組込みで読み込んだスクリプトから "return" で戻る
      ことができなかった
   *  "test" 組込みで単項 -o 演算子に "no" を付けたオプション名を指定
index acadde9..3672678 100644 (file)
@@ -1,4 +1,4 @@
-# (C) 2013-2014 magicant
+# (C) 2013-2016 magicant
 
 # Completion script for the "git-submodule" command.
 # Supports Git 1.8.1.4.
@@ -60,7 +60,7 @@ function completion/git::submodule:add:arg {
        command -f completion//parseoptions
        case $ARGOPT in
                (-)
-                       command -f completion//completeoptions
+                       command -f completion//completeoptions -e
                        ;;
 #              (b|--branch)
 #                      ;;