summaryrefslogtreecommitdiff
path: root/update-server-info.c
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2009-08-29 09:04:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-08-29 21:07:25 (GMT)
commit53a1116c611e9e717d90e1406b29d97648460773 (patch)
tree3ea5b50b1972f195a0824904e24fd29604aad2b0 /update-server-info.c
parentd17982f19c570744c98c10c167d54024e9d22909 (diff)
downloadgit-53a1116c611e9e717d90e1406b29d97648460773.zip
git-53a1116c611e9e717d90e1406b29d97648460773.tar.gz
git-53a1116c611e9e717d90e1406b29d97648460773.tar.bz2
update-server-info: make builtin, use parseopt
Convert git update-server-info to a built-in command and use parseopt. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'update-server-info.c')
-rw-r--r--update-server-info.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/update-server-info.c b/update-server-info.c
deleted file mode 100644
index 7b38fd8..0000000
--- a/update-server-info.c
+++ /dev/null
@@ -1,28 +0,0 @@
-#include "cache.h"
-#include "exec_cmd.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);
-
- git_extract_argv0_path(av[0]);
-
- setup_git_directory();
-
- return !!update_server_info(force);
-}