Re: If you would write git from scratch now, what would you change?
- From
Andreas Ericsson <ae@op5.se>
- Date
- Nov 27, 2007, 14:11 UTC
- Message-ID
- <474C259B.1000705@op5.se>
- In-Reply-To
- <alpine.LFD.0.99999.0711261417580.9605@xanadu.home>
Nicolas Pitre wrote:
Show 19 quoted lines
> On Mon, 26 Nov 2007, David Kastrup wrote: > >> Get rid of plumbing at the command line level. > > We can't get rid of plumbing. It is part of Git probably forever and is > really really convenient for scripting in any language you want. > > The only valid argument IMHO is the way too large number of Git commands > directly available from the cmdline. > > The solution: make purely plumbing commands _not_ directly available > from the command line. Instead, they can be available through 'git > lowlevel <blah>' instead of 'git <blah>' and only 'git lowlevel' would > stand in your shell default path. > > Such a scheme can be implemented in parallel with the current one for a > release while the direct plumbing commands are deprecated in order to > give script authors a transition period to fix their code. >
The "git-cmd" form of writing commands was deemed obsolete round about the time git.sh was rewritten in C. There's just no reason for it anymore.
It's unfortunate that git-sh-setup makes it equally valid for scripts to use either form, as we can never get rid of the dashed form when so many scripts in the core distribution uses it.
Ah well.
-- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231