Re: [PATCH 1/2] init: support --import to add all files and commit right after init
- From
Jeff King <peff@peff.net>
- Date
- Mar 27, 2009, 05:08 UTC
- Message-ID
- <20090327050828.GA23568@coredump.intra.peff.net>
- In-Reply-To
- <20090327050626.GA23512@coredump.intra.peff.net>
On Fri, Mar 27, 2009 at 01:06:26AM -0400, Jeff King wrote:
Show 10 quoted lines
> Another option would be a patch on top of the original to allow > > git config --global init.importmessage 'Commit inicial' > > or > > git config --global init.importeditor true > > I have no interest in writing such a patch, but I don't see a reason to > reject it.
Actually, there is one possible reason to reject it: scripts could not rely on the behavior of "--import" without it. But I think it is OK to make a conscious decision that this is a feature for _humans_, and that scripts can use "init && add && commit" (or they can be happy with dealing with the human's choice of editor or not).
-Peff