Re:Git undo: We can do better
by seoaeu on Monday June 21, 2021 @01:26PM
(#27581374)
The thing with command line interfaces is that since the same interface is used by humans and computer scripts, you essentially end up with an unversioned API that you can never make breaking changes to.
[ Parent
| on HN ]
It is versioned. There is git —-version. If your scripts break with the new version, don’t upgrade.
With other sorts of APIs you are given the choice between say the v1 version or the v2 version, with both endpoints being available at the same time. However, when it comes to command line programs for all practical purposes you can only have a single version installed at a time. And it of course doesn't help that essentially none of the existing scripts even check the versions of the software they run.