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

Re: Git config depth option?

From
Duy Nguyen <pclouds@gmail.com>
Date
Feb 12, 2016, 00:16 UTC
Message-ID
<CACsJy8DV5HCMtphbyft6Jc6sk3+rutvQY9sqs3jQjf3aD4tUZw@mail.gmail.com>
In-Reply-To
<CAG7bRqy=eMhr7G_7ODUcXGCHQ97uZYicTiav8-vL8hVKkSV_gg@mail.gmail.com>
On Thu, Feb 11, 2016 at 12:57 AM, Gary Mort <gary@sherodesigns.com> wrote:
Show 11 quoted lines
> 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?
No. But it it necessary the _clone_ command? I mean, would this alias suffice?
git config --global c1 'clone --depth 1'
-- 
Duy
Previous: Gary Mort
Message 2 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.