Re:Git's initial commit
by zabcik on Sunday November 23, 2014 @09:25PM
(#8650766)
Why are there multiple main() functions? I've never seen this style before. Is it multi-process?
[ Parent
| on HN ]
Re:Git's initial commit
by GauntletWizard on Sunday November 23, 2014 @09:28PM
(#8650774)
There's a bunch of different utilities in there. Each has it's own main() function, and they're compiled into a bunch of binaries.
There are multiple main() functions because there are multiple programs! Check out https://github.com/git/git/commit/e83c5163316f89bfbde7d9ab23...
Re:Git's initial commit
by andrewchambers on Monday November 24, 2014 @04:25PM
(#8654820)
Look at the makefile, it just has a command line program for each basic operation.