3 ms·
Don't forget that only the core of Git is C, the rest is big pile of shell scripts, and (I believe) perl.
by rkangel 15y ago
Don't forget that only the core of Git is C, the rest is big pile of shell scripts, and (I believe) perl.
- burgerbrain 15y agoThis is not particularly the case. Things with git are initially implemented as shell scripts, as a way of "just getting it done", but are later migrated to C. These days a very large portion of Git is straight C.
- davvid 15y agoMuch of the early git scripts (e.g. git-pull) have been rewritten in C. Performance is one reason. Helping out win32 (where fork+exec is slow) is another. $ ls -1 git-*.sh | wc -l 25 $ ls -1 git-*.perl | wc -l 9 Compare this to the built-in commands: $ ls -1 builtin/*.c | wc -l 92 or all the C files: $ git ls-files '*.c' | wc -l 306