git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Make "git reset" a builtin. (incomplete)

From
Andreas Ericsson <ae@op5.se>
Date
Aug 22, 2007, 13:37 UTC
Message-ID
<46CC3C17.8040901@op5.se>
In-Reply-To
<86absjenc3.fsf@lola.quinscape.zz>
David Kastrup wrote:
Show 12 quoted lines
> Carlos Rica <jasampler@gmail.com> writes:
> 
>> This is the first version of the program "builtin-reset.c",
>> intended for replacing the script "git-reset.sh".
>>
>> The --mixed option with -- paths is not implemented yet.
>>
>> The tests I made for it are not finished so they are not included,
>> but it seems to pass the rest of the test suite.
> 
> Could you be so kind as to give a one-sentence summary what the
> benefits over using a shell script would be?
One word: Portability.

There's a plethora of various shell syntaxes. Discerning what's correct shell and what's a bash'ism that may or may not be posixly correct (but perhaps not supported on a multitude of out-of-the-box solaris system) has so far taken almost as much time as convincing newcomers to git that there really is no point in tracking file renames explicitly.

Otoh, the list of large and renowned projects that have shunned git for its weak windows support grows longer, meaning we potentially lose competent programmers simply because they're forced to use something else.

Show 5 quoted lines
>  I think this work has
> started before I joined the list, and I'd be interested in the
> motivation for it.  In general, I find shell scripts more pleasant for
> hacking on than C code, and there is no long-term plan to replace all
> of them, is there?

There is, but nobody is putting a full-time effort into it, so the change is gradual and happens one program at a time whenever someone sends in a well-written C-program to replace a shell-script. Normally the C-program has to either show tremendous speed improvements or retain all functionality of the shell-script in order to be accepted.

Show 5 quoted lines
>  So unless there is some issue that can't be
> addressed reliably or efficiently by reverting to other commands for
> everything involving bulk processing, I am not really happy to see
> shell scripts replaced.
> 

It will happen, sooner or later. We may not like MS or their products, but sooner or later we'll have to cater to their users or face the problem of all the competent programmers helping out on some other SCM, because that other SCM works everywhere, while git doesn't.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: David KastrupNext: David Kastrup
Message 3 of 49 in “Make "git reset" a builtin. (incomplete)”
  1. Make "git reset" a builtin. (incomplete)Carlos Rica, Aug 22, 2007
  2. David KastrupAug 22, 2007
  3. Andreas EricssonAug 22, 2007
  4. David KastrupAug 22, 2007
  5. Mike HommeyAug 22, 2007
  6. Chris ShoemakerAug 22, 2007
  7. David KastrupAug 22, 2007
  8. Nicolas PitreAug 22, 2007
  9. Johannes SchindelinAug 22, 2007
  10. David KastrupAug 22, 2007
  11. Linus TorvaldsAug 22, 2007
  12. David KastrupAug 22, 2007
  13. Linus TorvaldsAug 22, 2007
  14. David KastrupAug 22, 2007
  15. Linus TorvaldsAug 22, 2007
  16. David KastrupAug 22, 2007
  17. Linus TorvaldsAug 23, 2007
  18. Wincent ColaiutaAug 23, 2007
  19. Nicolas PitreAug 23, 2007
  20. Jon SmirlAug 23, 2007
  21. Linus TorvaldsAug 23, 2007
  22. Junio C HamanoAug 23, 2007
  23. Johannes SchindelinAug 23, 2007
  24. Reece DunnAug 22, 2007
  25. Johannes SchindelinAug 23, 2007
  26. Theodore TsoAug 23, 2007
  27. Johannes SchindelinAug 23, 2007
  28. David TweedAug 23, 2007
  29. Theodore TsoAug 23, 2007
  30. Johannes SchindelinAug 23, 2007
  31. Jon SmirlAug 23, 2007
  32. Reece DunnAug 23, 2007
  33. Alex RiesenAug 23, 2007
  34. David KastrupAug 23, 2007
  35. Alex RiesenAug 23, 2007
  36. David KastrupAug 23, 2007
  37. Nicolas PitreAug 22, 2007
  38. Johannes SchindelinAug 23, 2007
  39. Nicolas PitreAug 23, 2007
  40. Reece DunnAug 22, 2007
  41. Johannes SchindelinAug 23, 2007
  42. Robin RosenbergAug 23, 2007
  43. Nguyen Thai Ngoc DuyAug 23, 2007
  44. Matthieu MoyAug 22, 2007
  45. David KastrupAug 22, 2007
  46. Andy ParkinsAug 22, 2007
  47. Johannes SixtAug 22, 2007
  48. Alex RiesenAug 22, 2007
  49. Johannes SchindelinAug 23, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.