Skip to content

Commit a1bbc6c

Browse files
stefanbellergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4d06473 commit a1bbc6c

File tree

5 files changed

+390
-1
lines changed

5 files changed

+390
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,6 @@ SCRIPT_SH += git-pull.sh
464464
SCRIPT_SH += git-quiltimport.sh
465465
SCRIPT_SH += git-rebase.sh
466466
SCRIPT_SH += git-remote-testgit.sh
467-
SCRIPT_SH += git-repack.sh
468467
SCRIPT_SH += git-request-pull.sh
469468
SCRIPT_SH += git-stash.sh
470469
SCRIPT_SH += git-submodule.sh
@@ -971,6 +970,7 @@ BUILTIN_OBJS += builtin/reflog.o
971970
BUILTIN_OBJS += builtin/remote.o
972971
BUILTIN_OBJS += builtin/remote-ext.o
973972
BUILTIN_OBJS += builtin/remote-fd.o
973+
BUILTIN_OBJS += builtin/repack.o
974974
BUILTIN_OBJS += builtin/replace.o
975975
BUILTIN_OBJS += builtin/rerere.o
976976
BUILTIN_OBJS += builtin/reset.o

builtin.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ extern int cmd_reflog(int argc, const char **argv, const char *prefix);
102102
extern int cmd_remote(int argc, const char **argv, const char *prefix);
103103
extern int cmd_remote_ext(int argc, const char **argv, const char *prefix);
104104
extern int cmd_remote_fd(int argc, const char **argv, const char *prefix);
105+
extern int cmd_repack(int argc, const char **argv, const char *prefix);
105106
extern int cmd_repo_config(int argc, const char **argv, const char *prefix);
106107
extern int cmd_rerere(int argc, const char **argv, const char *prefix);
107108
extern int cmd_reset(int argc, const char **argv, const char *prefix);

0 commit comments

Comments
 (0)