threads / patch / 31552

patch, 8 partsDoc: shallow clone deepens _to_ new depth

Subject: [PATCH 2/8] Doc: shallow clone deepens _to_ new depth

## tl;dr

One message between Sep 16, 2012 and Sep 16, 2012. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Philip Oakley· Sep 16, 2012, 10:57 UTC · lore

Clarify that 'depth=' specifies the new depth from the remote's branch tip. It does not add the depth to the existing shallow clone. (details from pack-protocol.txt). Clarify that tags are not fetched. (details from shallow.txt)

Signed-off-by: Philip Oakley <philipoakley@iee.org>
Show changes to Documentation/fetch-options.txt +2 −1
diff --git a/Documentation/fetch-options.txt b/Documentation/fetch-options.txt
index 39d326a..b4d6476 100644
--- a/Documentation/fetch-options.txt
+++ b/Documentation/fetch-options.txt
@@ -10,7 +10,8 @@
 --depth=<depth>::
 	Deepen the history of a 'shallow' repository created by
 	`git clone` with `--depth=<depth>` option (see linkgit:git-clone[1])
-	by the specified number of commits.
+	to the specified number of commits from the tip of each remote
+	branch history. Tags for the deepened commits are not fetched.
 
 ifndef::git-pull[]
 --dry-run::
-- 
1.7.8.msysgit.0

← back to recent threads