summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgit-submodule.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/git-submodule.sh b/git-submodule.sh
index 03c5a220a2..d3e3669fde 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -77,6 +77,9 @@ cmd_add()
branch=$2
shift
;;
+ --branch=*)
+ branch="${1#--branch=}"
+ ;;
-f | --force)
force=$1
;;
@@ -110,6 +113,9 @@ cmd_add()
custom_name=$2
shift
;;
+ --name=*)
+ custom_name="${1#--name=}"
+ ;;
--depth)
case "$2" in '') usage ;; esac
depth="--depth=$2"
@@ -425,6 +431,9 @@ cmd_set_branch() {
branch=$2
shift
;;
+ --branch=*)
+ branch="${1#--branch=}"
+ ;;
--)
shift
break