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

Git config depth option?

From
GMGary Mort <gary@sherodesigns.com>
Date
Feb 10, 2016, 17:57 UTC
Message-ID
<CAG7bRqy=eMhr7G_7ODUcXGCHQ97uZYicTiav8-vL8hVKkSV_gg@mail.gmail.com>

I checked the documentation and scanned through the source code for clone: https://github.com/git/git/blob/master/builtin/clone.c

And nothing jumps out at me as a way to specify a default depth using a global git configuration file. I see the option defined at https://github.com/git/git/blob/master/builtin/clone.c#L87

Since c is not my primary programming language, it may well be that there is some common parsing function/file which automatically maps command options to config file options. So, is there a way to set a default depth for the clone command?

-- 
Best Regards,

Gary

Gary A. Mort
Backend Developer | Shero Designs, Inc.



Office  845-547-0224 Ext 126 | Fax 845-547-0224
gary@sherodesigns.com | http://sherodesigns.com
Next: Duy Nguyen
Message 1 of 2 in “Git config depth option?”
  1. Gary MortFeb 10, 2016
  2. Duy NguyenFeb 12, 2016

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.