Skip to content

Commit cfb70e1

Browse files
pcloudsgitster
authored andcommitted
fetch: elaborate --depth action
--depth is explained as deepen, but the way it's applied, it can shorten the history as well. Keen users may have noticed the implication by the phrase "the specified number of commits from the tip of each remote branch". Put "shorten" in the description to make it clearer. Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 682c7d2 commit cfb70e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/fetch-options.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
option old data in `.git/FETCH_HEAD` will be overwritten.
99

1010
--depth=<depth>::
11-
Deepen the history of a 'shallow' repository created by
11+
Deepen or shorten the history of a 'shallow' repository created by
1212
`git clone` with `--depth=<depth>` option (see linkgit:git-clone[1])
1313
to the specified number of commits from the tip of each remote
1414
branch history. Tags for the deepened commits are not fetched.

0 commit comments

Comments
 (0)