doc: add doc for git-push --recurse-submodules=only
PATCH 1/2 doc: add doc for git-push --recurse-submodules=only
From: Cornelius Weig <[email protected]>
Add documentation for the --recurse-submodules=only option of git-push. The feature was added in commit 225e8bf (add option to push only submodules).
---
Notes:
This feature is already in 'next' but was undocumented. Unless somebody reads the release notes, there is no way of knowing about it.
Documentation/git-push.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)
Documentation/git-push.txt +7 -6
@@ -272,7 +272,7 @@ origin +master` to force a push to the `master` branch). See the standard error stream is not directed to a terminal. --no-recurse-submodules:: ---recurse-submodules=check|on-demand|no:: +--recurse-submodules=check|on-demand|only|no:: May be used to make sure all submodule commits used by the revisions to be pushed are available on a remote-tracking branch. If 'check' is used Git will verify that all submodule commits that
@@ -280,11 +280,12 @@ origin +master` to force a push to the `master` branch). See the remote of the submodule. If any commits are missing the push will be aborted and exit with non-zero status. If 'on-demand' is used all submodules that changed in the revisions to be pushed will be - pushed. If on-demand was not able to push all necessary revisions - it will also be aborted and exit with non-zero status. A value of - 'no' or using `--no-recurse-submodules` can be used to override the - push.recurseSubmodules configuration variable when no submodule - recursion is required. + pushed. If on-demand was not able to push all necessary revisions it will + also be aborted and exit with non-zero status. If 'only' is used all + submodules will be recursively pushed while the superproject is left + unpushed. A value of 'no' or using `--no-recurse-submodules` can be used + to override the push.recurseSubmodules configuration variable when no + submodule recursion is required. --[no-]verify:: Toggle the pre-push hook (see linkgit:githooks[5]). The
Signature · 1 line
2.10.2
PATCH 2/2 completion: add completion for --recurse-submodules=only
From: Cornelius Weig <[email protected]>
Command completion for 'git-push --recurse-submodules' already knows to complete some modes. However, the recently added mode 'only' is missing.
Adding 'only' to the recognized modes completes the list of non-trivial modes.
--- contrib/completion/git-completion.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
contrib/completion/git-completion.bash +1 -1
@@ -1675,7 +1675,7 @@ _git_pull () __git_complete_remote_or_refspec } -__git_push_recurse_submodules="check on-demand" +__git_push_recurse_submodules="check on-demand only" __git_complete_force_with_lease () {
Signature · 1 line
2.10.2
Quoted 6 lines · [email protected] writes:
From: Cornelius Weig <[email protected]>
Add documentation for the
--recurse-submodules=onlyoption of git-push. The feature was added in commit 225e8bf (add option to push only submodules).
Quoted 6 lines
Signed-off-by Cornelius Weig <[email protected]>---
Notes:
This feature is already in 'next' but was undocumented. Unless somebody reads the release notes, there is no way of knowing about it.
Good eyes; the topic bw/push-submodule-only is already in 'master'.
Looks good to me; Brandon?
Quoted 35 lines
Documentation/git-push.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)Documentation/git-push.txt +7
-6@@ -272,7 +272,7 @@ origin +master` to force a push to the `master` branch). See the standard error stream is not directed to a terminal. --no-recurse-submodules:: ---recurse-submodules=check|on-demand|no:: +--recurse-submodules=check|on-demand|only|no:: May be used to make sure all submodule commits used by the revisions to be pushed are available on a remote-tracking branch. If 'check' is used Git will verify that all submodule commits that@@ -280,11 +280,12 @@ origin +master` to force a push to the `master` branch). See the remote of the submodule. If any commits are missing the push will be aborted and exit with non-zero status. If 'on-demand' is used all submodules that changed in the revisions to be pushed will be - pushed. If on-demand was not able to push all necessary revisions - it will also be aborted and exit with non-zero status. A value of - 'no' or using `--no-recurse-submodules` can be used to override the - push.recurseSubmodules configuration variable when no submodule - recursion is required. + pushed. If on-demand was not able to push all necessary revisions it will + also be aborted and exit with non-zero status. If 'only' is used all + submodules will be recursively pushed while the superproject is left + unpushed. A value of 'no' or using `--no-recurse-submodules` can be used + to override the push.recurseSubmodules configuration variable when no + submodule recursion is required. --[no-]verify:: Toggle the pre-push hook (see linkgit:githooks[5]). The
Re: [PATCH 2/2] completion: add completion for --recurse-submodules=only
In reply to [email protected]Quoted 10 lines · On Wed, Feb 1, 2017 at 3:07 PM, <[email protected]> wrote:
From: Cornelius Weig <[email protected]>
Command completion for 'git-push --recurse-submodules' already knows to complete some modes. However, the recently added mode 'only' is missing.
Adding 'only' to the recognized modes completes the list of non-trivial modes.
Signed-off-by Cornelius Weig <[email protected]>---
Looks good,
Thanks,
Stefan
Quoted 19 lines
contrib/completion/git-completion.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)contrib/completion/git-completion.bash +1
-2@@ -1675,7 +1675,7 @@ _git_pull () __git_complete_remote_or_refspec } -__git_push_recurse_submodules="check on-demand" +__git_push_recurse_submodules="check on-demand only" __git_complete_force_with_lease () { --2.10.2
PATCH 1/2 doc: add doc for git-push --recurse-submodules=only
In reply to a message not in the archiveLooks good to me! Thanks for writing the documentation. I really need to be better about getting documentation done at the same time I'm adding features :)
-Brandon
Quoted 55 lines · Junio C Hamano
Quoted 6 lines · [email protected] writes:
From: Cornelius Weig <[email protected]>
Add documentation for the
--recurse-submodules=onlyoption of git-push. The feature was added in commit 225e8bf (add option to push only submodules).Quoted 6 lines
Signed-off-by Cornelius Weig <[email protected]>---
Notes:
This feature is already in 'next' but was undocumented. Unless somebody reads the release notes, there is no way of knowing about it.Good eyes; the topic bw/push-submodule-only is already in 'master'.
Looks good to me; Brandon?
Quoted 35 lines
Documentation/git-push.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)Documentation/git-push.txt +7
-6@@ -272,7 +272,7 @@ origin +master` to force a push to the `master` branch). See the standard error stream is not directed to a terminal. --no-recurse-submodules:: ---recurse-submodules=check|on-demand|no:: +--recurse-submodules=check|on-demand|only|no:: May be used to make sure all submodule commits used by the revisions to be pushed are available on a remote-tracking branch. If 'check' is used Git will verify that all submodule commits that@@ -280,11 +280,12 @@ origin +master` to force a push to the `master` branch). See the remote of the submodule. If any commits are missing the push will be aborted and exit with non-zero status. If 'on-demand' is used all submodules that changed in the revisions to be pushed will be - pushed. If on-demand was not able to push all necessary revisions - it will also be aborted and exit with non-zero status. A value of - 'no' or using `--no-recurse-submodules` can be used to override the - push.recurseSubmodules configuration variable when no submodule - recursion is required. + pushed. If on-demand was not able to push all necessary revisions it will + also be aborted and exit with non-zero status. If 'only' is used all + submodules will be recursively pushed while the superproject is left + unpushed. A value of 'no' or using `--no-recurse-submodules` can be used + to override the push.recurseSubmodules configuration variable when no + submodule recursion is required. --[no-]verify:: Toggle the pre-push hook (see linkgit:githooks[5]). The
Shouldn't this be part of v2.12-rc0? I just checked but it's not there.
Cheers,
Cornelius