Re: If you would write git from scratch now, what would you change?

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

 



Nicolas Pitre wrote:
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@xxxxxx
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
-
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]

  Powered by Linux