{"thread":{"id":"41385","subject":"Git config depth option?","startedAt":"2016-02-10T17:57:05Z","lastAt":"2016-02-12T00:16:54Z","messageCount":2,"participants":["Gary Mort","Duy Nguyen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"277882","messageId":"CAG7bRqy=eMhr7G_7ODUcXGCHQ97uZYicTiav8-vL8hVKkSV_gg@mail.gmail.com","threadId":"41385","inReplyTo":null,"subject":"Git config depth option?","fromName":"Gary Mort","fromEmail":"gary@sherodesigns.com","sentAt":"2016-02-10T17:57:05Z","receivedAt":"2016-02-10T17:57:05Z","isPatch":false,"sender":{"key":"gary@sherodesigns.com","avatar":null},"body":"I checked the documentation and scanned through the source code for clone:\nhttps://github.com/git/git/blob/master/builtin/clone.c\n\nAnd nothing jumps out at me as a way to specify a default depth using\na global git configuration file.  I see the option defined at\nhttps://github.com/git/git/blob/master/builtin/clone.c#L87\n\nSince c is not my primary programming language, it may well be that\nthere is some common parsing function/file which automatically maps\ncommand options to config file options.  So, is there a way to set a\ndefault depth for the clone command?\n\n\n\n-- \nBest Regards,\n\nGary\n\nGary A. Mort\nBackend Developer | Shero Designs, Inc.\n\n\n\nOffice  845-547-0224 Ext 126 | Fax 845-547-0224\ngary@sherodesigns.com | http://sherodesigns.com\n"},{"id":"277981","messageId":"CACsJy8DV5HCMtphbyft6Jc6sk3+rutvQY9sqs3jQjf3aD4tUZw@mail.gmail.com","threadId":"41385","inReplyTo":"CAG7bRqy=eMhr7G_7ODUcXGCHQ97uZYicTiav8-vL8hVKkSV_gg@mail.gmail.com","subject":"Re: Git config depth option?","fromName":"Duy Nguyen","fromEmail":"pclouds@gmail.com","sentAt":"2016-02-12T00:16:54Z","receivedAt":"2016-02-12T00:16:54Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Thu, Feb 11, 2016 at 12:57 AM, Gary Mort <gary@sherodesigns.com> wrote:\n> I checked the documentation and scanned through the source code for clone:\n> https://github.com/git/git/blob/master/builtin/clone.c\n>\n> And nothing jumps out at me as a way to specify a default depth using\n> a global git configuration file.  I see the option defined at\n> https://github.com/git/git/blob/master/builtin/clone.c#L87\n>\n> Since c is not my primary programming language, it may well be that\n> there is some common parsing function/file which automatically maps\n> command options to config file options.  So, is there a way to set a\n> default depth for the clone command?\n\nNo. But it it necessary the _clone_ command? I mean, would this alias suffice?\n\ngit config --global c1 'clone --depth 1'\n-- \nDuy\n"}]}