Re: Git config depth option?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 11, 2016 at 12:57 AM, Gary Mort <gary@xxxxxxxxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]