Re: [PATCH] Make "git reset" a builtin. (incomplete)
- From
Nicolas Pitre <nico@cam.org>
- Date
- Aug 23, 2007, 15:19 UTC
- Message-ID
- <alpine.LFD.0.999.0708231110280.16727@xanadu.home>
- In-Reply-To
- <Pine.LNX.4.64.0708231051210.20400@racer.site>
On Thu, 23 Aug 2007, Johannes Schindelin wrote:
Show 18 quoted lines
> Hi, > > On Wed, 22 Aug 2007, Nicolas Pitre wrote: > > > On Wed, 22 Aug 2007, Johannes Schindelin wrote: > > > > > What is wrong with going from shell to C? C _is_ portable. Instead > > > of relying on _yet_ another scripting language, introducing _yet_ > > > another language that people have to learn to hack git, introducing > > > _yet_ another place for bugs to hide, why not just admit that shell is > > > nice for _prototyping_? > > > > This is a narrow view of the programming world that I don't share. > > Well, you have to admit that some things are really, really hard to do in > shell. Just from the top of my head: locking, data structures, > portability, scalability, process control. There are a lot more, I guess, > but for the _core_ of Git I really prefer C.
I don't dispute that.
I'm more concerned about easy scripting of Git operations that can be shared across different environments.
> I do not want to shove C down the throat of every Git user. You can use > _whatever_ scripting language you like.
Sure. I was thinking that a common scripting language, shipped with Git itself that would work out of the box either on Linux or Windows, could benefit the whole Git user base, with a possible side effect of being able to also run the test suite everywhere. If that has no sufficient merits to other people and only remains a peep dream of mine then so be it.
Nicolas