git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Robert P. J. Day <rpjday@crashcourse.ca>
Date
Oct 18, 2019, 09:48 UTC
Message-ID
<alpine.LFD.2.21.1910180544160.5751@localhost.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
========================================================================
Message 1 of 1 in “what *precisely* means "--depth" WRT a shallow clone?”
  1. Robert P. J. DayOct 18, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.