From: Junio C Hamano Date: Thu, 27 Jun 2019 20:10:51 GMT Subject: Re: [PATCH 1/1] docs: update git-clone doc: refer to long options Message-ID: In-Reply-To: <0dd1b017698dd9d15f291f1133eb40dac8d85a68.1561663019.git.gitgitgadget@gmail.com> "Quentin Nerden via GitGitGadget" writes: > From: Quentin Nerden > > To make the doc of git-clone easier to read, > refer to the long version of the options > (it is easier to guess what --verbose is doing than -v). > > Also: > put the short options first, to match the doc of git-add, git-commit, git-clean, git-branch... This "also" makes the patch unnecessarily harder to review. Splitting it into two patches would make it reviewable. Thanks. > > Signed-off-by: Quentin Nerden > --- > Documentation/git-clone.txt | 28 ++++++++++++++-------------- > 1 file changed, 14 insertions(+), 14 deletions(-) > > diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt > index 5fc97f14de..4edc713a4b 100644 > --- a/Documentation/git-clone.txt > +++ b/Documentation/git-clone.txt > @@ -41,8 +41,8 @@ configuration variables. > > OPTIONS > ------- > ---local:: > -l:: > +--local:: > When the repository to clone from is on a local machine, > this flag bypasses the normal "Git aware" transport > mechanism and clones the repository by making a copy of > @@ -63,8 +63,8 @@ Git transport instead. > directory instead of using hardlinks. This may be desirable > if you are trying to make a back-up of your repository. > > ---shared:: > -s:: > +--shared:: > When the repository to clone is on the local machine, > instead of using hard links, automatically setup > `.git/objects/info/alternates` to share the objects > @@ -81,10 +81,10 @@ which automatically call `git gc --auto`. (See linkgit:git-gc[1].) > If these objects are removed and were referenced by the cloned repository, > then the cloned repository will become corrupt. > + > -Note that running `git repack` without the `-l` option in a repository > +Note that running `git repack` without the `--local` option in a repository > cloned with `-s` will copy objects from the source repository into a pack > in the cloned repository, removing the disk space savings of `clone -s`. > -It is safe, however, to run `git gc`, which uses the `-l` option by > +It is safe, however, to run `git gc`, which uses the `--local` option by > default. > + > If you want to break the dependency of a repository cloned with `-s` on > @@ -116,19 +116,19 @@ objects from the source repository into a pack in the cloned repository. > same repository, and this option can be used to stop the > borrowing. > > ---quiet:: > -q:: > +--quiet:: > Operate quietly. Progress is not reported to the standard > error stream. > > ---verbose:: > -v:: > +--verbose:: > Run verbosely. Does not affect the reporting of progress status > to the standard error stream. > > --progress:: > Progress status is reported on the standard error stream > - by default when it is attached to a terminal, unless -q > + by default when it is attached to a terminal, unless `--quiet` > is specified. This flag forces progress status even if the > standard error stream is not directed to a terminal. > > @@ -140,15 +140,15 @@ objects from the source repository into a pack in the cloned repository. > When multiple `--server-option=