@matheusbsbs / matheus-bagliano / commits / a2775c2a41
Fork 0

[PATCH] Update git-clone documentation

The documentation for git-clone is behind the actual command. I have been getting tired of reading the shell script to see what the arguments are so here is an update of the actual documentation. Signed-off-by: Eric Biederman <ebiederman@xmission.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Eric W. Biederman committed Oct 2, 2005 at 13:42 UTC a2775c2a410be4bec1e29ae78bccd3247829e2be
1 file changed +14 -1
Documentation/git-clone.txt
+14 -1
@@ -9,7 +9,7 @@ git-clone - Clones a repository.
9
10 SYNOPSIS
11 --------
12 -'git clone' [-l] [-u <upload-pack>] [-q] <repository> <directory>
12 +'git clone' [-l [-s]] [-q] [-n] [-u <upload-pack>] <repository> <directory>
13
14 DESCRIPTION
15 -----------
@@ -17,6 +17,7 @@ Clones a repository into a newly created directory.
17
18 OPTIONS
19 -------
20 +--local::
21 -l::
22 When the repository to clone from is on a local machine,
23 this flag bypasses normal "git aware" transport
@@ -25,10 +26,22 @@ OPTIONS
26 The files under .git/objects/ directory are hardlinked
27 to save space when possible.
28
29 +--shared::
30 +-s::
31 + When the repository to clone is on the local machine,
32 + instead of using hard links automatically setup
33 + .git/objects/info/alternatives to share the objects
34 + with the source repository
35 +
36 +--quiet::
37 -q::
38 Operate quietly. This flag is passed to "rsync" and
39 "git-clone-pack" commands when given.
40
41 +-n::
42 + No checkout of HEAD is performed after the clone is complete.
43 +
44 +--upload-pack <upload-pack>::
45 -u <upload-pack>::
46 When given, and the repository to clone from is handled
47 by 'git-clone-pack', '--exec=<upload-pack>' is passed to