Skip to content

Commit bc40dea

Browse files
Philip Oakleygitster
authored andcommitted
Doc: shallow clone deepens _to_ new depth
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 304b7d9 commit bc40dea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/fetch-options.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
--depth=<depth>::
1111
Deepen the history of a 'shallow' repository created by
1212
`git clone` with `--depth=<depth>` option (see linkgit:git-clone[1])
13-
by the specified number of commits.
13+
to the specified number of commits from the tip of each remote
14+
branch history. Tags for the deepened commits are not fetched.
1415

1516
ifndef::git-pull[]
1617
--dry-run::

0 commit comments

Comments
 (0)