https://github.com/git/git
Raw File
Tip revision: d5bc7eecbbb0b9f6122708bf5cd62f78ebdaafd8 authored by Junio C Hamano on 25 September 2005, 07:36:26 UTC
GIT v0.99.7d
Tip revision: d5bc7ee
update-server-info.c
#include "cache.h"

static const char update_server_info_usage[] =
"git-update-server-info [--force]";

int main(int ac, char **av)
{
	int i;
	int force = 0;
	for (i = 1; i < ac; i++) {
		if (av[i][0] == '-') {
			if (!strcmp("--force", av[i]) ||
			    !strcmp("-f", av[i]))
				force = 1;
			else
				usage(update_server_info_usage);
		}
	}
	if (i != ac)
		usage(update_server_info_usage);

	return !!update_server_info(force);
}
back to top