News for hackers. Stuff that matters.
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?
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.
Re:Git's initial commit by Svenstaro on Sunday November 23, 2014 @09:29PM (#8650779)
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.
Re:Git's initial commit by taurath on Sunday November 23, 2014 @09:28PM (#8650776)
Could just be initializers for different modules maybe?