summaryrefslogtreecommitdiff
path: root/common-main.c
blob: 57c912a78e3f12665ee5afbacb8c5e69a5f4a53c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "git-compat-util.h"
#include "exec_cmd.h"
 
int main(int argc, char **av)
{
	/*
	 * This const trickery is explained in
	 * 84d32bf7678259c08406571cd6ce4b7a6724dcba
	 */
	const char **argv = (const char **)av;
 
	argv[0] = git_extract_argv0_path(argv[0]);
 
	return cmd_main(argc, argv);
}