]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'dl/submodule-set-branch'
authorJunio C Hamano <gitster@pobox.com>
Thu, 25 Apr 2019 07:41:18 +0000 (16:41 +0900)
committerJunio C Hamano <gitster@pobox.com>
Thu, 25 Apr 2019 07:41:18 +0000 (16:41 +0900)
"git submodule" learns "set-branch" subcommand that allows the
submodule.*.branch settings to be modified.

* dl/submodule-set-branch:
  submodule: teach set-branch subcommand
  submodule--helper: teach config subcommand --unset
  git-submodule.txt: "--branch <branch>" option defaults to 'master'

1  2 
Documentation/git-submodule.txt
builtin/submodule--helper.c
contrib/completion/git-completion.bash
git-submodule.sh

Simple merge
Simple merge
index 42a3c8e52417d42a255c68a4f6f24a1518bb3404,8b3b5a9d34590fbf025753d87c5a69ec77945239..3eefbabdb12266cd94729bdeacc088785d917967
@@@ -2611,7 -2573,7 +2611,7 @@@ _git_submodule (
  {
        __git_has_doubledash && return
  
-       local subcommands="add status init deinit update summary foreach sync absorbgitdirs"
 -      local subcommands="add status init deinit update set-branch summary foreach sync"
++      local subcommands="add status init deinit update set-branch summary foreach sync absorbgitdirs"
        local subcommand="$(__git_find_on_cmdline "$subcommands")"
        if [ -z "$subcommand" ]; then
                case "$cur" in
Simple merge