From: Junio C Hamano Date: Wed, 28 Nov 2012 19:02:45 GMT Subject: Re: [PATCH] submodule update: document exisiting -r form for --rebase Message-ID: <7vboehv9d6.fsf@alter.siamese.dyndns.org> In-Reply-To: <0450c75cbab3119ea830e8e8e3484649062377d8.1354127227.git.wking@tremily.us> "W. Trevor King" writes: > From: "W. Trevor King" > > Signed-off-by: W. Trevor King > --- > Documentation/git-submodule.txt | 3 ++- > git-submodule.sh | 2 +- > 2 files changed, 3 insertions(+), 2 deletions(-) Hmm, I wonder why I have this funny feeling that this was proposed and rejected already... As the command takes other options whose names begin with 'r', I thought the longer term plan was to stop letting "--rebase" squat on short and sweet "-r" and leaving it undocumented (even though the short one was added by mistake) was meant to be the first step in that process. But maybe I am confusing an undocumented single-letter option from some other subcommand. Anybody remembers? > diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt > index b4683bb..ec78fa7 100644 > --- a/Documentation/git-submodule.txt > +++ b/Documentation/git-submodule.txt > @@ -13,7 +13,7 @@ SYNOPSIS > [--reference ] [--] [] > 'git submodule' [--quiet] status [--cached] [--recursive] [--] [...] > 'git submodule' [--quiet] init [--] [...] > -'git submodule' [--quiet] update [--init] [-N|--no-fetch] [--rebase] > +'git submodule' [--quiet] update [--init] [-N|--no-fetch] [-r|--rebase] > [--reference ] [--merge] [--recursive] [--] [...] > 'git submodule' [--quiet] summary [--cached|--files] [(-n|--summary-limit) ] > [commit] [--] [...] > @@ -251,6 +251,7 @@ OPTIONS > If the key `submodule.$name.update` is set to `merge`, this option is > implicit. > > +-r:: > --rebase:: > This option is only valid for the update command. > Rebase the current branch onto the commit recorded in the > diff --git a/git-submodule.sh b/git-submodule.sh > index ab6b110..f2e8026 100755 > --- a/git-submodule.sh > +++ b/git-submodule.sh > @@ -8,7 +8,7 @@ dashless=$(basename "$0" | sed -e 's/-/ /') > USAGE="[--quiet] add [-b branch] [-f|--force] [--reference ] [--] [] > or: $dashless [--quiet] status [--cached] [--recursive] [--] [...] > or: $dashless [--quiet] init [--] [...] > - or: $dashless [--quiet] update [--init] [-N|--no-fetch] [-f|--force] [--rebase] [--reference ] [--merge] [--recursive] [--] [...] > + or: $dashless [--quiet] update [--init] [-N|--no-fetch] [-f|--force] [-r|--rebase] [--reference ] [--merge] [--recursive] [--] [...] > or: $dashless [--quiet] summary [--cached|--files] [--summary-limit ] [commit] [--] [...] > or: $dashless [--quiet] foreach [--recursive] > or: $dashless [--quiet] sync [--] [...]"