1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-17 14:34:49 +01:00
git/update-server-info.c
Junio C Hamano d119e3de13 Also use 'track_object_refs = 0' in update-server-info.
Signed-off-by: Junio C Hamano <junkio@cox.net>
2005-10-08 15:54:35 -07:00

26 lines
477 B
C

#include "cache.h"
#include "object.h"
static const char update_server_info_usage[] =
"git-update-server-info [--force]";
int main(int ac, char **av)
{
int i;
int force = 0;
track_object_refs = 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);
}