From: Junio C Hamano Date: Tue, 01 Jan 2013 21:40:44 GMT Subject: Re: [PATCH 4/8] Fix Synopsis Message-ID: <7vwqvw8tur.fsf@alter.siamese.dyndns.org> In-Reply-To: <1357012655-24974-5-git-send-email-greened@obbligato.org> "David A. Greene" writes: > From: "David A. Greene" > > Fix the documentation of add to show that a repository can be > specified along with a commit. > > Change "commit" to "refspec" in the synopsis for add. > > Suggested by Yann Dirson . > > Signed-off-by: David A. Greene > --- > contrib/subtree/git-subtree.sh | 3 ++- > contrib/subtree/git-subtree.txt | 3 ++- > 2 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/contrib/subtree/git-subtree.sh b/contrib/subtree/git-subtree.sh > index b8a807a..ad62dfb 100755 > --- a/contrib/subtree/git-subtree.sh > +++ b/contrib/subtree/git-subtree.sh > @@ -8,7 +8,8 @@ if [ $# -eq 0 ]; then > set -- -h > fi > OPTS_SPEC="\ > -git subtree add --prefix= > +git subtree add --prefix= Again, this is not but . > +git subtree add --prefix= This is given to "fetch" and it seems to acccept any , so it is probably a good change (I didn't fully follow the codepath, though). > git subtree merge --prefix= > git subtree pull --prefix= > git subtree push --prefix= > diff --git a/contrib/subtree/git-subtree.txt b/contrib/subtree/git-subtree.txt > index ae420aa..89c2d6e 100644 > --- a/contrib/subtree/git-subtree.txt > +++ b/contrib/subtree/git-subtree.txt > @@ -9,7 +9,8 @@ git-subtree - Merge subtrees together and split repository into subtrees > SYNOPSIS > -------- > [verse] > -'git subtree' add -P > +'git subtree' add -P > +'git subtree' add -P > 'git subtree' pull -P > 'git subtree' push -P > 'git subtree' merge -P