Skip to content

Commit d09cb7e

Browse files
committed
users/21750 (after users/21551): _git-subtree: Tweak -m,-P completions
1 parent 9991707 commit d09cb7e

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2016-07-17 Daniel Shahaf <[email protected]>
2+
3+
* users/21750 (after users/21551): Completion/Unix/Command/_git:
4+
_git-subtree: Tweak -m,-P completions
5+
16
2016-07-17 Oliver Kiddle <[email protected]>
27

38
* 38868: Completion/BSD/Command/_freebsd-update,

Completion/Unix/Command/_git

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1755,7 +1755,7 @@ _git-subtree () {
17551755
# TODO: -P should only complete paths inside the current repository.
17561756
_arguments -C \
17571757
'(-q --quiet)'{-q,--quiet}'[suppress progress output]' \
1758-
'(-P --prefix)'{-P,--prefix=}'[the path to the subtree in the repository to manipulate]: :_directories' \
1758+
'(-P --prefix)'{-P+,--prefix=}'[the path to the subtree in the repository to manipulate]: :_directories' \
17591759
'-d[show debug messages]' \
17601760
': :->command' \
17611761
'*::: := ->option-or-argument' && ret=0
@@ -1779,44 +1779,44 @@ _git-subtree () {
17791779
(add)
17801780
_arguments \
17811781
'(-q --quiet)'{-q,--quiet}'[suppress progress output]' \
1782-
'(-m --message)'{-m,--message}'[use the given message as the commit message for the merge commit]' \
1783-
'(-P --prefix)'{-P,--prefix=}'[the path to the subtree in the repository to manipulate]: :_directories' \
1782+
'(-m --message)'{-m+,--message=}'[use the given message as the commit message for the merge commit]:message' \
1783+
'(-P --prefix)'{-P+,--prefix=}'[the path to the subtree in the repository to manipulate]: :_directories' \
17841784
'--squash[import only a single commit from the subproject]' \
17851785
': :__git_any_repositories_or_references' \
17861786
':: :__git_ref_specs' && ret=0
17871787
;;
17881788
(merge)
17891789
_arguments -S \
17901790
'(-q --quiet)'{-q,--quiet}'[suppress progress output]' \
1791-
'(-P --prefix)'{-P,--prefix=}'[the path to the subtree in the repository to manipulate]: :_directories' \
1792-
'(-m --message)'{-m,--message}'[use the given message as the commit message for the merge commit]' \
1791+
'(-P --prefix)'{-P+,--prefix=}'[the path to the subtree in the repository to manipulate]: :_directories' \
1792+
'(-m --message)'{-m+,--message=}'[use the given message as the commit message for the merge commit]:message' \
17931793
'--squash[import only a single commit from the subproject]' \
17941794
': :__git_references' && ret=0
17951795
;;
17961796
(pull)
17971797
_arguments -S \
17981798
'(-q --quiet)'{-q,--quiet}'[suppress progress output]' \
1799-
'(-P --prefix)'{-P,--prefix=}'[the path to the subtree in the repository to manipulate]: :_directories' \
1800-
'(-m --message)'{-m,--message}'[use the given message as the commit message for the merge commit]' \
1799+
'(-P --prefix)'{-P+,--prefix=}'[the path to the subtree in the repository to manipulate]: :_directories' \
1800+
'(-m --message)'{-m+,--message=}'[use the given message as the commit message for the merge commit]:message' \
18011801
'--squash[import only a single commit from the subproject]' \
18021802
': :__git_any_repositories' \
18031803
':: :__git_ref_specs' && ret=0
18041804
;;
18051805
(push)
18061806
_arguments -S \
18071807
'(-q --quiet)'{-q,--quiet}'[suppress progress output]' \
1808-
'(-P --prefix)'{-P,--prefix=}'[the path to the subtree in the repository to manipulate]: :_directories' \
1809-
'(-m --message)'{-m,--message}'[use the given message as the commit message for the merge commit]' \
1808+
'(-P --prefix)'{-P+,--prefix=}'[the path to the subtree in the repository to manipulate]: :_directories' \
1809+
'(-m --message)'{-m+,--message=}'[use the given message as the commit message for the merge commit]:message' \
18101810
': :__git_any_repositories' \
18111811
':: :__git_ref_specs' && ret=0
18121812
;;
18131813
(split)
18141814
_arguments -S \
18151815
'(-q --quiet)'{-q,--quiet}'[suppress progress output]' \
1816-
'(-P --prefix)'{-P,--prefix=}'[the path to the subtree in the repository to manipulate]: :_directories' \
1816+
'(-P --prefix)'{-P+,--prefix=}'[the path to the subtree in the repository to manipulate]: :_directories' \
18171817
'(-b --branch)'{-b,--branch=}'[create a new branch]' \
18181818
'--onto=[try connecting new tree to an existing one]: :__git_ref_specs' \
1819-
'(-m --message)'{-m,--message}'[use the given message as the commit message for the merge commit]' \
1819+
'(-m --message)'{-m+,--message=}'[use the given message as the commit message for the merge commit]:message' \
18201820
'--ignore-joins[ignore prior --rejoin commits]' \
18211821
'--onto=[try connecting new tree to an existing one]: :__git_ref_specs' \
18221822
'--rejoin[use the given message as the commit message for the merge commit]' \

0 commit comments

Comments
 (0)