aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-clone-pack.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-12-14 21:25:22 -0800
committerJunio C Hamano <junkio@cox.net>2005-12-14 21:25:22 -0800
commit31ec6abf887ec95642cbe82fe61076e975494ab0 (patch)
treeb4568f377cecd823a5eeea8eadd1257ed193d908 /Documentation/git-clone-pack.txt
parent294c695d8cfbcf95a5c33fc6ba386f496964defb (diff)
downloadgit-31ec6abf887ec95642cbe82fe61076e975494ab0.tar.gz
git-31ec6abf887ec95642cbe82fe61076e975494ab0.tar.xz
clone-pack: make it usable for partial branch cloning.
clone-pack had some logic to accept subset of remote refs from the command line and clone from there. However, it was never used in practice and its problems were not found out so far. This commit changes the command to output the object names of refs to the standard output instead of making a clone of the remote repository when explicit <head> parameters are given; the output format is the same as fetch-pack. The traditional behaviour of cloning the whole repository by giving no explicit <head> parameters stays the same. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/git-clone-pack.txt')
-rw-r--r--Documentation/git-clone-pack.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/git-clone-pack.txt b/Documentation/git-clone-pack.txt
index cfc7b62f3..39906fc45 100644
--- a/Documentation/git-clone-pack.txt
+++ b/Documentation/git-clone-pack.txt
@@ -43,7 +43,11 @@ OPTIONS
The heads to update. This is relative to $GIT_DIR
(e.g. "HEAD", "refs/heads/master"). When unspecified,
all heads are updated to match the remote repository.
-
++
+Usually all the refs from existing repository are stored
+under the same name in the new repository. Giving explicit
+<head> arguments instead writes the object names and refs to
+the standard output, just like get-fetch-pack does.
Author
------