Re: [PATCH 10/10] clone: accept config options on the command line
- From
Jeff King <peff@peff.net>
- Date
- Jun 9, 2011, 17:12 UTC
- Message-ID
- <20110609171214.GA30888@sigill.intra.peff.net>
- In-Reply-To
- <BANLkTinBqSVpREg6667Ydf2JjL3r14BgRA@mail.gmail.com>
On Thu, Jun 09, 2011 at 07:10:33PM +0200, Bert Wesarg wrote:
Show 16 quoted lines
> On Thu, Jun 9, 2011 at 17:57, Jeff King <peff@peff.net> wrote: > > diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt > > index b093e45..3e24064 100644 > > --- a/Documentation/git-clone.txt > > +++ b/Documentation/git-clone.txt > > @@ -159,6 +159,15 @@ objects from the source repository into a pack in the cloned repository. > > Specify the directory from which templates will be used; > > (See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].) > > > > +--config <key>=<value>:: > > +-c <key>=<value>:: > > + Set a configuration variable in the newly-cloned repository. The > > Shouldn't this be 'newly-created repository', because the > configuration variables are set before the actual cloning, but after > initializing the new repository.
Yeah, I think your wording is better. It might also make sense to explicitly say that the config takes effect during the fetch and checkout phases of the clone (there's otherwise no point, of course, but it never hurts to make the documentation clear).
-Peff