repack: rewrite the shell script in C
authorStefan Beller <stefanbeller@googlemail.com>
Sun, 15 Sep 2013 15:33:20 +0000 (17:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Sep 2013 20:34:50 +0000 (13:34 -0700)
commita1bbc6c0176f1fa2d4aa571cc0183a1f0ff9b285
tree799fd445e4deb222f8699226d5ba86c02147d91d
parent4d06473928ee574910accbde05c19ef2263abdf6
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>
Makefile
builtin.h
builtin/repack.c [new file with mode: 0644]
contrib/examples/git-repack.sh [moved from git-repack.sh with 100% similarity]
git.c