Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/git/git
/ main
Function
main
common-main.c:4–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
2
#include
"common-init.h"
3
4
int main(int argc, const char **argv)
5
{
6
int result;
7
8
init_git(argv);
9
result = cmd_main(argc, argv);
10
11
/* Not exit(3), but a wrapper calling our common_exit() */
12
exit(result);
13
}
Callers
nothing calls this directly
Calls
2
init_git
Function · 0.85
cmd_main
Function · 0.70
Tested by
no test coverage detected