3 ms·
The first commit of the git command that I found was a shell script. It called other scripts which used the C stuff behind the scenes. https://git.kernel.org/p
by rascul 4y ago
The first commit of the git command that I found was a shell script. It called other scripts which used the C stuff behind the scenes.
https://git.kernel.org/pub/scm/git/git.git/commit/git?id=e764b8e8b3c50b131be825532ba26fa346d6586e https://git.kernel.org/pub/scm/git/git.git/commit/git?id=e76...
- masklinn 4y agoThat’s not “git was originally written in shell” by any honest interpretation of the term.
- theamk 4y agohere is "git commit" in shell: https://git.kernel.org/pub/scm/git/git.git/tree/git-commit-script?id=e764b8e8b3c50b131be825532ba26fa346d6586e https://git.kernel.org/pub/scm/git/git.git/tree/git-commit-s... here is "git status", with all its formatting glory: https://git.kernel.org/pub/scm/git/git.git/tree/git-status-script?id=e764b8e8b3c50b131be825532ba26fa346d6586e https://git.kernel.org/pub/scm/git/git.git/tree/git-status-s... but yes, I would not call it "git was written in shell". But some of its significant pieces were.
- rascul 4y agoIt's pretty much the only interpretation I can come up with that results in git being written in shell. I do think it's a bit of a stretch though.
- tylersmith 4y agoAnd in only 3 lines of code!