On Mon, Nov 26, 2007 at 21:35:56 +0100, David Kastrup wrote: > Jan Hudec <bulb@xxxxxx> writes: > > > On Mon, Nov 26, 2007 at 20:34:25 +0100, David Kastrup wrote: > >> Nicolas Pitre <nico@xxxxxxx> writes: > >> > On Mon, 26 Nov 2007, David Kastrup wrote: > >> >> Get rid of plumbing at the command line level. > >> > > >> > We can't get rid of plumbing. > >> > >> What about "at the command line level" did you not understand? > > > > Which part of we neither can nor want did you not understant? > > > > The availability of plumbing is really big part of a reason why git is > > so good and has so many scripts and tool built on top of it. > > Which is the reason I proposed making the plumbing available at a > scripting level, not at the command line level. But scripting in the first place means *SHELL* scripting. Or you normally use Lua command line for your daily work? > The actual trend we are getting nowadays is locking the porcelaine, > previously available as shell scripts, down into C code, _without_ > making use of a reasonable plumbing layer suitable for any scripting at > all. For myself I would say I don't think C is an appropriate tool for the job. It is nice when you need to optimize things to the last instruction, but for my taste it's unwieldy for the high-level stuff. > So the git community at the same time praises shell scripting and > simultanouesly replaces it without even using the available plumbing, > _and_ claims that _both_, exclusive and incompatible approaches, are the > perfect solution. At the same time. While fighting the shell > portability fight continuously, on Unix as well as Windows. Well, the builtins *do* use the plumbing. They just use the C functions without using streams and forks. Isn't that what you wanted? But the key reason for keeping the plumbing around is prototyping and especially tailoring. Junio has many scripts (you can look at them in the todo branch in git repo) to support his particular workflow and plumbing is useful there. And shell is really the right tool for such things. > I may have a big mouth, but swallowing all of this at once is beyond me. -- Jan 'Bulb' Hudec <bulb@xxxxxx>
Attachment:
signature.asc
Description: Digital signature