From: Junio C Hamano Date: Thu, 11 Jul 2019 22:16:48 +0000 (-0700) Subject: Merge branch 'qn/clone-doc-use-long-form' X-Git-Tag: v2.23.0-rc0~47 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/4ad01a4c9fa42d389dc3da7c17adaf334735a3a8?ds=inline;hp=-c Merge branch 'qn/clone-doc-use-long-form' The "git clone" documentation refers to command line options in its description in the short form; they have been replaced with long forms to make them more recognisable. * qn/clone-doc-use-long-form: docs: git-clone: list short form of options first docs: git-clone: refer to long form of options --- 4ad01a4c9fa42d389dc3da7c17adaf334735a3a8 diff --combined Documentation/git-clone.txt index 5fc97f14de,ca8871c165..34011c2940 --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@@ -15,15 -15,14 +15,15 @@@ SYNOPSI [--dissociate] [--separate-git-dir ] [--depth ] [--[no-]single-branch] [--no-tags] [--recurse-submodules[=]] [--[no-]shallow-submodules] - [--jobs ] [--] [] + [--[no-]remote-submodules] [--jobs ] [--] + [] DESCRIPTION ----------- Clones a repository into a newly created directory, creates remote-tracking branches for each branch in the cloned repository - (visible using `git branch -r`), and creates and checks out an + (visible using `git branch --remotes`), and creates and checks out an initial branch that is forked from the cloned repository's currently active branch. @@@ -41,8 -40,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 -62,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,13 -80,13 +81,13 @@@ which automatically call `git gc --auto 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 - 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 + Note that running `git repack` without the `--local` option in a repository + cloned with `--shared` will copy objects from the source repository into a pack + in the cloned repository, removing the disk space savings of `clone --shared`. + 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 + If you want to break the dependency of a repository cloned with `--shared` on its source repository, you can simply run `git repack -a` to copy all objects from the source repository into a pack in the cloned repository. @@@ -116,19 -115,19 +116,19 @@@ 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 -139,15 +140,15 @@@ When multiple `--server-option=