Staging
v0.5.1
https://github.com/git/git
Revision 42b5c78845feb44f1d36eecad4c72336d5c2a9c5 authored by Junio C Hamano on 15 April 2006, 06:21:34 UTC, committed by Junio C Hamano on 15 April 2006, 06:21:34 UTC
I've merged everything I think is ready for 1.3.0, so this is
the final round -- hopefully I can release this with minimum
last-minute fixup as v1.3.0 early next week.

Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 170abc8
Raw File
Tip revision: 42b5c78845feb44f1d36eecad4c72336d5c2a9c5 authored by Junio C Hamano on 15 April 2006, 06:21:34 UTC
GIT v1.3.0-rc4
Tip revision: 42b5c78
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);

	setup_git_directory();

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