summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert L. Lash, IV <alash3@bloomberg.net>2014-02-08 15:41:36 -0500
committerJunio C Hamano <gitster@pobox.com>2014-02-11 11:03:07 -0800
commit897e3e454062d2bb9d3c1e4068caf4971fd713ff (patch)
tree5747c64ea206b2ef14525d1c268d8d2691fda976
parenta2f69581ffc26fadb27bc29dd03074791a16d61e (diff)
downloadgit-897e3e454062d2bb9d3c1e4068caf4971fd713ff.tar.gz
docs/git-clone: clarify use of --no-hardlinks option
Current text claims optimization, implying the use of hardlinks, when this option ratchets down the level of efficiency. This change explains the difference made by using this option, namely copying instead of hardlinking, and why it may be useful. Signed-off-by: Albert L. Lash, IV <alash3@bloomberg.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Documentation/git-clone.txt11
1 files changed, 4 insertions, 7 deletions
diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt
index bf3dac0cef..0363d0039b 100644
--- a/Documentation/git-clone.txt
+++ b/Documentation/git-clone.txt
@@ -55,15 +55,12 @@ repository is specified as a URL, then this flag is ignored (and we
never use the local optimizations). Specifying `--no-local` will
override the default when `/path/to/repo` is given, using the regular
Git transport instead.
-+
-To force copying instead of hardlinking (which may be desirable if you
-are trying to make a back-up of your repository), but still avoid the
-usual "Git aware" transport mechanism, `--no-hardlinks` can be used.
--no-hardlinks::
- Optimize the cloning process from a repository on a
- local filesystem by copying files under `.git/objects`
- directory.
+ Force the cloning process from a repository on a local
+ filesystem to copy the files under the `.git/objects`
+ directory instead of using hardlinks. This may be desirable
+ if you are trying to make a back-up of your repository.
--shared::
-s::