Re: Git config depth option?
From: Duy Nguyen <hidden>
Date: 2016-06-15 23:08:12
On Thu, Feb 11, 2016 at 12:57 AM, Gary Mort [off-list ref] wrote:
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