Code

builtin: use builtin.h for all builtin commands
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 1 Sep 2010 15:45:00 +0000 (15:45 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 30 Oct 2010 07:09:14 +0000 (07:09 +0000)
commitb002c656fa5221b999ca7b01c946b738644e9739
treeacdbf11819a2231914bc28e10a2bd7d94cacafa7
parentc8415cda0d1e2b3b27f0668f12a01ba49906adae
builtin: use builtin.h for all builtin commands

Change the builtin/*.c files and wt-status.c files which weren't using
builtin.h to use it, also remove any git-compat-util.h, strbuf.h and
cache.h from those files. We can trust on builtin.h including them.

builtin.h also includes commit.h and notes.h. But I haven't removed
these includes. They're redundant now, but we may want to remove them
from builtin.h in the future.

This impeded my efforts to gettextize git, since I'd otherwise have to
add gettext.h to all of these. Using builtin.h is a good idea in any
case, since it's defining the prototypes for the cmd_* functions that
these files define.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
18 files changed:
builtin/clone.c
builtin/fetch-pack.c
builtin/hash-object.c
builtin/index-pack.c
builtin/merge-index.c
builtin/merge-recursive.c
builtin/merge-tree.c
builtin/mktag.c
builtin/pack-redundant.c
builtin/pack-refs.c
builtin/patch-id.c
builtin/receive-pack.c
builtin/remote.c
builtin/reset.c
builtin/send-pack.c
builtin/unpack-file.c
builtin/var.c
wt-status.c