# what *precisely* means "--depth" WRT a shallow clone?

1 messages from 2019-10-18 to 2019-10-18. Participants: Robert P. J. Day.
Thread: https://gitlist.dev/t/52067

## Robert P. J. Day, 2019-10-18 09:48

Subject: what *precisely* means "--depth" WRT a shallow clone?
Message-ID: <alpine.LFD.2.21.1910180544160.5751@localhost.localdomain>
URL: https://gitlist.dev/e/alpine.LFD.2.21.1910180544160.5751%40localhost.localdomain

```

  i can see the standard use of "--depth" when set to precisely one,
for CI/CD systems that don't need any history. but what does it mean
to say, eg, "--depth 10"?

  the man page explains that as "a history truncated to the specified
number of commits", but what does mean in the sense of branching and
merging? will i get *precisely* 10 commits of history? and in the
context of merging, *which* 10 commits?

  sorry if this should be obvious.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                         http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

```
