summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorStefan Beller <stefanbeller@googlemail.com>2013-09-15 15:33:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-09-17 20:34:50 (GMT)
commita1bbc6c0176f1fa2d4aa571cc0183a1f0ff9b285 (patch)
tree799fd445e4deb222f8699226d5ba86c02147d91d /git.c
parent4d06473928ee574910accbde05c19ef2263abdf6 (diff)
downloadgit-a1bbc6c0176f1fa2d4aa571cc0183a1f0ff9b285.zip
git-a1bbc6c0176f1fa2d4aa571cc0183a1f0ff9b285.tar.gz
git-a1bbc6c0176f1fa2d4aa571cc0183a1f0ff9b285.tar.bz2
repack: rewrite the shell script in C
The motivation of this patch is to get closer to a goal of being able to have a core subset of git functionality built in to git. That would mean * people on Windows could get a copy of at least the core parts of Git without having to install a Unix-style shell * people using git in on servers with chrooted environments do not need to worry about standard tools lacking for shell scripts. This patch is meant to be mostly a literal translation of the git-repack script; the intent is that later patches would start using more library facilities, but this patch is meant to be as close to a no-op as possible so it doesn't do that kind of thing. Signed-off-by: Stefan Beller <stefanbeller@googlemail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
-rw-r--r--git.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/git.c b/git.c
index 2025f77..03510be 100644
--- a/git.c
+++ b/git.c
@@ -396,6 +396,7 @@ static void handle_internal_command(int argc, const char **argv)
{ "remote", cmd_remote, RUN_SETUP },
{ "remote-ext", cmd_remote_ext },
{ "remote-fd", cmd_remote_fd },
+ { "repack", cmd_repack, RUN_SETUP },
{ "replace", cmd_replace, RUN_SETUP },
{ "repo-config", cmd_repo_config, RUN_SETUP_GENTLY },
{ "rerere", cmd_rerere, RUN_SETUP },