Move 'builtin-*' into a 'builtin/' subdirectory
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 22 Feb 2010 16:42:18 +0000 (08:42 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Feb 2010 22:29:41 +0000 (14:29 -0800)
This shrinks the top-level directory a bit, and makes it much more
pleasant to use auto-completion on the thing. Instead of

[torvalds@nehalem git]$ em buil<tab>
Display all 180 possibilities? (y or n)
[torvalds@nehalem git]$ em builtin-sh
builtin-shortlog.c     builtin-show-branch.c  builtin-show-ref.c
builtin-shortlog.o     builtin-show-branch.o  builtin-show-ref.o
[torvalds@nehalem git]$ em builtin-shor<tab>
builtin-shortlog.c  builtin-shortlog.o
[torvalds@nehalem git]$ em builtin-shortlog.c

you get

[torvalds@nehalem git]$ em buil<tab> [type]
builtin/   builtin.h
[torvalds@nehalem git]$ em builtin [auto-completes to]
[torvalds@nehalem git]$ em builtin/sh<tab> [type]
shortlog.c     shortlog.o     show-branch.c  show-branch.o  show-ref.c     show-ref.o
[torvalds@nehalem git]$ em builtin/sho [auto-completes to]
[torvalds@nehalem git]$ em builtin/shor<tab> [type]
shortlog.c  shortlog.o
[torvalds@nehalem git]$ em builtin/shortlog.c

which doesn't seem all that different, but not having that annoying
break in "Display all 180 possibilities?" is quite a relief.

NOTE! If you do this in a clean tree (no object files etc), or using an
editor that has auto-completion rules that ignores '*.o' files, you
won't see that annoying 'Display all 180 possibilities?' message - it
will just show the choices instead.  I think bash has some cut-off
around 100 choices or something.

So the reason I see this is that I'm using an odd editory, and thus
don't have the rules to cut down on auto-completion.  But you can
simulate that by using 'ls' instead, or something similar.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
90 files changed:
Makefile
builtin/add.c [moved from builtin-add.c with 100% similarity]
builtin/annotate.c [moved from builtin-annotate.c with 100% similarity]
builtin/apply.c [moved from builtin-apply.c with 100% similarity]
builtin/archive.c [moved from builtin-archive.c with 100% similarity]
builtin/bisect--helper.c [moved from builtin-bisect--helper.c with 100% similarity]
builtin/blame.c [moved from builtin-blame.c with 100% similarity]
builtin/branch.c [moved from builtin-branch.c with 100% similarity]
builtin/bundle.c [moved from builtin-bundle.c with 100% similarity]
builtin/cat-file.c [moved from builtin-cat-file.c with 100% similarity]
builtin/check-attr.c [moved from builtin-check-attr.c with 100% similarity]
builtin/check-ref-format.c [moved from builtin-check-ref-format.c with 100% similarity]
builtin/checkout-index.c [moved from builtin-checkout-index.c with 100% similarity]
builtin/checkout.c [moved from builtin-checkout.c with 100% similarity]
builtin/clean.c [moved from builtin-clean.c with 100% similarity]
builtin/clone.c [moved from builtin-clone.c with 100% similarity]
builtin/commit-tree.c [moved from builtin-commit-tree.c with 100% similarity]
builtin/commit.c [moved from builtin-commit.c with 100% similarity]
builtin/config.c [moved from builtin-config.c with 100% similarity]
builtin/count-objects.c [moved from builtin-count-objects.c with 100% similarity]
builtin/describe.c [moved from builtin-describe.c with 100% similarity]
builtin/diff-files.c [moved from builtin-diff-files.c with 100% similarity]
builtin/diff-index.c [moved from builtin-diff-index.c with 100% similarity]
builtin/diff-tree.c [moved from builtin-diff-tree.c with 100% similarity]
builtin/diff.c [moved from builtin-diff.c with 100% similarity]
builtin/fast-export.c [moved from builtin-fast-export.c with 100% similarity]
builtin/fetch-pack.c [moved from builtin-fetch-pack.c with 100% similarity]
builtin/fetch.c [moved from builtin-fetch.c with 100% similarity]
builtin/fmt-merge-msg.c [moved from builtin-fmt-merge-msg.c with 100% similarity]
builtin/for-each-ref.c [moved from builtin-for-each-ref.c with 100% similarity]
builtin/fsck.c [moved from builtin-fsck.c with 100% similarity]
builtin/gc.c [moved from builtin-gc.c with 100% similarity]
builtin/grep.c [moved from builtin-grep.c with 100% similarity]
builtin/hash-object.c [moved from builtin-hash-object.c with 100% similarity]
builtin/help.c [moved from builtin-help.c with 100% similarity]
builtin/index-pack.c [moved from builtin-index-pack.c with 100% similarity]
builtin/init-db.c [moved from builtin-init-db.c with 100% similarity]
builtin/log.c [moved from builtin-log.c with 100% similarity]
builtin/ls-files.c [moved from builtin-ls-files.c with 100% similarity]
builtin/ls-remote.c [moved from builtin-ls-remote.c with 100% similarity]
builtin/ls-tree.c [moved from builtin-ls-tree.c with 100% similarity]
builtin/mailinfo.c [moved from builtin-mailinfo.c with 100% similarity]
builtin/mailsplit.c [moved from builtin-mailsplit.c with 100% similarity]
builtin/merge-base.c [moved from builtin-merge-base.c with 100% similarity]
builtin/merge-file.c [moved from builtin-merge-file.c with 100% similarity]
builtin/merge-index.c [moved from builtin-merge-index.c with 100% similarity]
builtin/merge-ours.c [moved from builtin-merge-ours.c with 100% similarity]
builtin/merge-recursive.c [moved from builtin-merge-recursive.c with 100% similarity]
builtin/merge-tree.c [moved from builtin-merge-tree.c with 100% similarity]
builtin/merge.c [moved from builtin-merge.c with 100% similarity]
builtin/mktag.c [moved from builtin-mktag.c with 100% similarity]
builtin/mktree.c [moved from builtin-mktree.c with 100% similarity]
builtin/mv.c [moved from builtin-mv.c with 100% similarity]
builtin/name-rev.c [moved from builtin-name-rev.c with 100% similarity]
builtin/pack-objects.c [moved from builtin-pack-objects.c with 100% similarity]
builtin/pack-redundant.c [moved from builtin-pack-redundant.c with 100% similarity]
builtin/pack-refs.c [moved from builtin-pack-refs.c with 100% similarity]
builtin/patch-id.c [moved from builtin-patch-id.c with 100% similarity]
builtin/prune-packed.c [moved from builtin-prune-packed.c with 100% similarity]
builtin/prune.c [moved from builtin-prune.c with 100% similarity]
builtin/push.c [moved from builtin-push.c with 100% similarity]
builtin/read-tree.c [moved from builtin-read-tree.c with 100% similarity]
builtin/receive-pack.c [moved from builtin-receive-pack.c with 100% similarity]
builtin/reflog.c [moved from builtin-reflog.c with 100% similarity]
builtin/remote.c [moved from builtin-remote.c with 100% similarity]
builtin/replace.c [moved from builtin-replace.c with 100% similarity]
builtin/rerere.c [moved from builtin-rerere.c with 100% similarity]
builtin/reset.c [moved from builtin-reset.c with 100% similarity]
builtin/rev-list.c [moved from builtin-rev-list.c with 100% similarity]
builtin/rev-parse.c [moved from builtin-rev-parse.c with 100% similarity]
builtin/revert.c [moved from builtin-revert.c with 100% similarity]
builtin/rm.c [moved from builtin-rm.c with 100% similarity]
builtin/send-pack.c [moved from builtin-send-pack.c with 100% similarity]
builtin/shortlog.c [moved from builtin-shortlog.c with 100% similarity]
builtin/show-branch.c [moved from builtin-show-branch.c with 100% similarity]
builtin/show-ref.c [moved from builtin-show-ref.c with 100% similarity]
builtin/stripspace.c [moved from builtin-stripspace.c with 100% similarity]
builtin/symbolic-ref.c [moved from builtin-symbolic-ref.c with 100% similarity]
builtin/tag.c [moved from builtin-tag.c with 100% similarity]
builtin/tar-tree.c [moved from builtin-tar-tree.c with 100% similarity]
builtin/unpack-file.c [moved from builtin-unpack-file.c with 100% similarity]
builtin/unpack-objects.c [moved from builtin-unpack-objects.c with 100% similarity]
builtin/update-index.c [moved from builtin-update-index.c with 100% similarity]
builtin/update-ref.c [moved from builtin-update-ref.c with 100% similarity]
builtin/update-server-info.c [moved from builtin-update-server-info.c with 100% similarity]
builtin/upload-archive.c [moved from builtin-upload-archive.c with 100% similarity]
builtin/var.c [moved from builtin-var.c with 100% similarity]
builtin/verify-pack.c [moved from builtin-verify-pack.c with 100% similarity]
builtin/verify-tag.c [moved from builtin-verify-tag.c with 100% similarity]
builtin/write-tree.c [moved from builtin-write-tree.c with 100% similarity]

index afedb54b48da31d9293ea43971dccf177823e68a..f1025d5c036e142dea4e492b6ea4a165189d1b3d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -301,7 +301,7 @@ SPARSE_FLAGS = -D__BIG_ENDIAN__ -D__powerpc__
 # Those must not be GNU-specific; they are shared with perl/ which may
 # be built by a different compiler. (Note that this is an artifact now
 # but it still might be nice to keep that distinction.)
-BASIC_CFLAGS =
+BASIC_CFLAGS = -I.
 BASIC_LDFLAGS =
 
 # Guard against environment variables
@@ -370,8 +370,8 @@ PROGRAMS += git-upload-pack$X
 PROGRAMS += git-http-backend$X
 
 # List built-in command $C whose implementation cmd_$C() is not in
-# builtin-$C.o but is linked in as part of some other command.
-BUILT_INS += $(patsubst builtin-%.o,git-%$X,$(BUILTIN_OBJS))
+# builtin/$C.o but is linked in as part of some other command.
+BUILT_INS += $(patsubst builtin/%.o,git-%$X,$(BUILTIN_OBJS))
 
 BUILT_INS += git-cherry$X
 BUILT_INS += git-cherry-pick$X
@@ -594,95 +594,95 @@ LIB_OBJS += ws.o
 LIB_OBJS += wt-status.o
 LIB_OBJS += xdiff-interface.o
 
-BUILTIN_OBJS += builtin-add.o
-BUILTIN_OBJS += builtin-annotate.o
-BUILTIN_OBJS += builtin-apply.o
-BUILTIN_OBJS += builtin-archive.o
-BUILTIN_OBJS += builtin-bisect--helper.o
-BUILTIN_OBJS += builtin-blame.o
-BUILTIN_OBJS += builtin-branch.o
-BUILTIN_OBJS += builtin-bundle.o
-BUILTIN_OBJS += builtin-cat-file.o
-BUILTIN_OBJS += builtin-check-attr.o
-BUILTIN_OBJS += builtin-check-ref-format.o
-BUILTIN_OBJS += builtin-checkout-index.o
-BUILTIN_OBJS += builtin-checkout.o
-BUILTIN_OBJS += builtin-clean.o
-BUILTIN_OBJS += builtin-clone.o
-BUILTIN_OBJS += builtin-commit-tree.o
-BUILTIN_OBJS += builtin-commit.o
-BUILTIN_OBJS += builtin-config.o
-BUILTIN_OBJS += builtin-count-objects.o
-BUILTIN_OBJS += builtin-describe.o
-BUILTIN_OBJS += builtin-diff-files.o
-BUILTIN_OBJS += builtin-diff-index.o
-BUILTIN_OBJS += builtin-diff-tree.o
-BUILTIN_OBJS += builtin-diff.o
-BUILTIN_OBJS += builtin-fast-export.o
-BUILTIN_OBJS += builtin-fetch-pack.o
-BUILTIN_OBJS += builtin-fetch.o
-BUILTIN_OBJS += builtin-fmt-merge-msg.o
-BUILTIN_OBJS += builtin-for-each-ref.o
-BUILTIN_OBJS += builtin-fsck.o
-BUILTIN_OBJS += builtin-gc.o
-BUILTIN_OBJS += builtin-grep.o
-BUILTIN_OBJS += builtin-hash-object.o
-BUILTIN_OBJS += builtin-help.o
-BUILTIN_OBJS += builtin-index-pack.o
-BUILTIN_OBJS += builtin-init-db.o
-BUILTIN_OBJS += builtin-log.o
-BUILTIN_OBJS += builtin-ls-files.o
-BUILTIN_OBJS += builtin-ls-remote.o
-BUILTIN_OBJS += builtin-ls-tree.o
-BUILTIN_OBJS += builtin-mailinfo.o
-BUILTIN_OBJS += builtin-mailsplit.o
-BUILTIN_OBJS += builtin-merge.o
-BUILTIN_OBJS += builtin-merge-base.o
-BUILTIN_OBJS += builtin-merge-file.o
-BUILTIN_OBJS += builtin-merge-index.o
-BUILTIN_OBJS += builtin-merge-ours.o
-BUILTIN_OBJS += builtin-merge-recursive.o
-BUILTIN_OBJS += builtin-merge-tree.o
-BUILTIN_OBJS += builtin-mktag.o
-BUILTIN_OBJS += builtin-mktree.o
-BUILTIN_OBJS += builtin-mv.o
-BUILTIN_OBJS += builtin-name-rev.o
-BUILTIN_OBJS += builtin-pack-objects.o
-BUILTIN_OBJS += builtin-pack-redundant.o
-BUILTIN_OBJS += builtin-pack-refs.o
-BUILTIN_OBJS += builtin-patch-id.o
-BUILTIN_OBJS += builtin-prune-packed.o
-BUILTIN_OBJS += builtin-prune.o
-BUILTIN_OBJS += builtin-push.o
-BUILTIN_OBJS += builtin-read-tree.o
-BUILTIN_OBJS += builtin-receive-pack.o
-BUILTIN_OBJS += builtin-reflog.o
-BUILTIN_OBJS += builtin-remote.o
-BUILTIN_OBJS += builtin-replace.o
-BUILTIN_OBJS += builtin-rerere.o
-BUILTIN_OBJS += builtin-reset.o
-BUILTIN_OBJS += builtin-rev-list.o
-BUILTIN_OBJS += builtin-rev-parse.o
-BUILTIN_OBJS += builtin-revert.o
-BUILTIN_OBJS += builtin-rm.o
-BUILTIN_OBJS += builtin-send-pack.o
-BUILTIN_OBJS += builtin-shortlog.o
-BUILTIN_OBJS += builtin-show-branch.o
-BUILTIN_OBJS += builtin-show-ref.o
-BUILTIN_OBJS += builtin-stripspace.o
-BUILTIN_OBJS += builtin-symbolic-ref.o
-BUILTIN_OBJS += builtin-tag.o
-BUILTIN_OBJS += builtin-tar-tree.o
-BUILTIN_OBJS += builtin-unpack-file.o
-BUILTIN_OBJS += builtin-unpack-objects.o
-BUILTIN_OBJS += builtin-update-index.o
-BUILTIN_OBJS += builtin-update-ref.o
-BUILTIN_OBJS += builtin-update-server-info.o
-BUILTIN_OBJS += builtin-upload-archive.o
-BUILTIN_OBJS += builtin-var.o
-BUILTIN_OBJS += builtin-verify-pack.o
-BUILTIN_OBJS += builtin-verify-tag.o
-BUILTIN_OBJS += builtin-write-tree.o
+BUILTIN_OBJS += builtin/add.o
+BUILTIN_OBJS += builtin/annotate.o
+BUILTIN_OBJS += builtin/apply.o
+BUILTIN_OBJS += builtin/archive.o
+BUILTIN_OBJS += builtin/bisect--helper.o
+BUILTIN_OBJS += builtin/blame.o
+BUILTIN_OBJS += builtin/branch.o
+BUILTIN_OBJS += builtin/bundle.o
+BUILTIN_OBJS += builtin/cat-file.o
+BUILTIN_OBJS += builtin/check-attr.o
+BUILTIN_OBJS += builtin/check-ref-format.o
+BUILTIN_OBJS += builtin/checkout-index.o
+BUILTIN_OBJS += builtin/checkout.o
+BUILTIN_OBJS += builtin/clean.o
+BUILTIN_OBJS += builtin/clone.o
+BUILTIN_OBJS += builtin/commit-tree.o
+BUILTIN_OBJS += builtin/commit.o
+BUILTIN_OBJS += builtin/config.o
+BUILTIN_OBJS += builtin/count-objects.o
+BUILTIN_OBJS += builtin/describe.o
+BUILTIN_OBJS += builtin/diff-files.o
+BUILTIN_OBJS += builtin/diff-index.o
+BUILTIN_OBJS += builtin/diff-tree.o
+BUILTIN_OBJS += builtin/diff.o
+BUILTIN_OBJS += builtin/fast-export.o
+BUILTIN_OBJS += builtin/fetch-pack.o
+BUILTIN_OBJS += builtin/fetch.o
+BUILTIN_OBJS += builtin/fmt-merge-msg.o
+BUILTIN_OBJS += builtin/for-each-ref.o
+BUILTIN_OBJS += builtin/fsck.o
+BUILTIN_OBJS += builtin/gc.o
+BUILTIN_OBJS += builtin/grep.o
+BUILTIN_OBJS += builtin/hash-object.o
+BUILTIN_OBJS += builtin/help.o
+BUILTIN_OBJS += builtin/index-pack.o
+BUILTIN_OBJS += builtin/init-db.o
+BUILTIN_OBJS += builtin/log.o
+BUILTIN_OBJS += builtin/ls-files.o
+BUILTIN_OBJS += builtin/ls-remote.o
+BUILTIN_OBJS += builtin/ls-tree.o
+BUILTIN_OBJS += builtin/mailinfo.o
+BUILTIN_OBJS += builtin/mailsplit.o
+BUILTIN_OBJS += builtin/merge.o
+BUILTIN_OBJS += builtin/merge-base.o
+BUILTIN_OBJS += builtin/merge-file.o
+BUILTIN_OBJS += builtin/merge-index.o
+BUILTIN_OBJS += builtin/merge-ours.o
+BUILTIN_OBJS += builtin/merge-recursive.o
+BUILTIN_OBJS += builtin/merge-tree.o
+BUILTIN_OBJS += builtin/mktag.o
+BUILTIN_OBJS += builtin/mktree.o
+BUILTIN_OBJS += builtin/mv.o
+BUILTIN_OBJS += builtin/name-rev.o
+BUILTIN_OBJS += builtin/pack-objects.o
+BUILTIN_OBJS += builtin/pack-redundant.o
+BUILTIN_OBJS += builtin/pack-refs.o
+BUILTIN_OBJS += builtin/patch-id.o
+BUILTIN_OBJS += builtin/prune-packed.o
+BUILTIN_OBJS += builtin/prune.o
+BUILTIN_OBJS += builtin/push.o
+BUILTIN_OBJS += builtin/read-tree.o
+BUILTIN_OBJS += builtin/receive-pack.o
+BUILTIN_OBJS += builtin/reflog.o
+BUILTIN_OBJS += builtin/remote.o
+BUILTIN_OBJS += builtin/replace.o
+BUILTIN_OBJS += builtin/rerere.o
+BUILTIN_OBJS += builtin/reset.o
+BUILTIN_OBJS += builtin/rev-list.o
+BUILTIN_OBJS += builtin/rev-parse.o
+BUILTIN_OBJS += builtin/revert.o
+BUILTIN_OBJS += builtin/rm.o
+BUILTIN_OBJS += builtin/send-pack.o
+BUILTIN_OBJS += builtin/shortlog.o
+BUILTIN_OBJS += builtin/show-branch.o
+BUILTIN_OBJS += builtin/show-ref.o
+BUILTIN_OBJS += builtin/stripspace.o
+BUILTIN_OBJS += builtin/symbolic-ref.o
+BUILTIN_OBJS += builtin/tag.o
+BUILTIN_OBJS += builtin/tar-tree.o
+BUILTIN_OBJS += builtin/unpack-file.o
+BUILTIN_OBJS += builtin/unpack-objects.o
+BUILTIN_OBJS += builtin/update-index.o
+BUILTIN_OBJS += builtin/update-ref.o
+BUILTIN_OBJS += builtin/update-server-info.o
+BUILTIN_OBJS += builtin/upload-archive.o
+BUILTIN_OBJS += builtin/var.o
+BUILTIN_OBJS += builtin/verify-pack.o
+BUILTIN_OBJS += builtin/verify-tag.o
+BUILTIN_OBJS += builtin/write-tree.o
 
 GITLIBS = $(LIB_FILE) $(XDIFF_LIB)
 EXTLIBS =
@@ -1447,8 +1447,8 @@ git$X: git.o $(BUILTIN_OBJS) $(GITLIBS)
        $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ git.o \
                $(BUILTIN_OBJS) $(ALL_LDFLAGS) $(LIBS)
 
-builtin-help.o: common-cmds.h
-builtin-help.s builtin-help.o: ALL_CFLAGS += \
+builtin/help.o: common-cmds.h
+builtin/help.s builtin/help.o: ALL_CFLAGS += \
        '-DGIT_HTML_PATH="$(htmldir_SQ)"' \
        '-DGIT_MAN_PATH="$(mandir_SQ)"' \
        '-DGIT_INFO_PATH="$(infodir_SQ)"'
@@ -1604,7 +1604,7 @@ exec_cmd.s exec_cmd.o: ALL_CFLAGS += \
        '-DBINDIR="$(bindir_relative_SQ)"' \
        '-DPREFIX="$(prefix_SQ)"'
 
-builtin-init-db.s builtin-init-db.o: ALL_CFLAGS += \
+builtin/init-db.s builtin/init-db.o: ALL_CFLAGS += \
        -DDEFAULT_GIT_TEMPLATE_DIR='"$(template_dir_SQ)"'
 
 config.s config.o: ALL_CFLAGS += -DETC_GITCONFIG='"$(ETC_GITCONFIG_SQ)"'
@@ -1646,7 +1646,7 @@ $(REMOTE_CURL_PRIMARY): remote-curl.o http.o http-walker.o $(GITLIBS)
 
 $(LIB_OBJS) $(BUILTIN_OBJS): $(LIB_H)
 $(patsubst git-%$X,%.o,$(PROGRAMS)) git.o: $(LIB_H) $(wildcard */*.h)
-builtin-revert.o wt-status.o: wt-status.h
+builtin/revert.o wt-status.o: wt-status.h
 
 $(LIB_FILE): $(LIB_OBJS)
        $(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $(LIB_OBJS)
@@ -1934,7 +1934,7 @@ distclean: clean
 
 clean:
        $(RM) *.o block-sha1/*.o ppc/*.o compat/*.o compat/*/*.o xdiff/*.o \
-               $(LIB_FILE) $(XDIFF_LIB)
+               builtin/*.o $(LIB_FILE) $(XDIFF_LIB)
        $(RM) $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS) git$X
        $(RM) $(TEST_PROGRAMS)
        $(RM) -r bin-wrappers
similarity index 100%
rename from builtin-add.c
rename to builtin/add.c
similarity index 100%
rename from builtin-annotate.c
rename to builtin/annotate.c
similarity index 100%
rename from builtin-apply.c
rename to builtin/apply.c
similarity index 100%
rename from builtin-archive.c
rename to builtin/archive.c
similarity index 100%
rename from builtin-blame.c
rename to builtin/blame.c
similarity index 100%
rename from builtin-branch.c
rename to builtin/branch.c
similarity index 100%
rename from builtin-bundle.c
rename to builtin/bundle.c
similarity index 100%
rename from builtin-cat-file.c
rename to builtin/cat-file.c
similarity index 100%
rename from builtin-check-attr.c
rename to builtin/check-attr.c
similarity index 100%
rename from builtin-checkout.c
rename to builtin/checkout.c
similarity index 100%
rename from builtin-clean.c
rename to builtin/clean.c
similarity index 100%
rename from builtin-clone.c
rename to builtin/clone.c
similarity index 100%
rename from builtin-commit-tree.c
rename to builtin/commit-tree.c
similarity index 100%
rename from builtin-commit.c
rename to builtin/commit.c
similarity index 100%
rename from builtin-config.c
rename to builtin/config.c
similarity index 100%
rename from builtin-describe.c
rename to builtin/describe.c
similarity index 100%
rename from builtin-diff-files.c
rename to builtin/diff-files.c
similarity index 100%
rename from builtin-diff-index.c
rename to builtin/diff-index.c
similarity index 100%
rename from builtin-diff-tree.c
rename to builtin/diff-tree.c
similarity index 100%
rename from builtin-diff.c
rename to builtin/diff.c
similarity index 100%
rename from builtin-fast-export.c
rename to builtin/fast-export.c
similarity index 100%
rename from builtin-fetch-pack.c
rename to builtin/fetch-pack.c
similarity index 100%
rename from builtin-fetch.c
rename to builtin/fetch.c
similarity index 100%
rename from builtin-fsck.c
rename to builtin/fsck.c
similarity index 100%
rename from builtin-gc.c
rename to builtin/gc.c
similarity index 100%
rename from builtin-grep.c
rename to builtin/grep.c
similarity index 100%
rename from builtin-hash-object.c
rename to builtin/hash-object.c
similarity index 100%
rename from builtin-help.c
rename to builtin/help.c
similarity index 100%
rename from builtin-index-pack.c
rename to builtin/index-pack.c
similarity index 100%
rename from builtin-init-db.c
rename to builtin/init-db.c
similarity index 100%
rename from builtin-log.c
rename to builtin/log.c
similarity index 100%
rename from builtin-ls-files.c
rename to builtin/ls-files.c
similarity index 100%
rename from builtin-ls-remote.c
rename to builtin/ls-remote.c
similarity index 100%
rename from builtin-ls-tree.c
rename to builtin/ls-tree.c
similarity index 100%
rename from builtin-mailinfo.c
rename to builtin/mailinfo.c
similarity index 100%
rename from builtin-mailsplit.c
rename to builtin/mailsplit.c
similarity index 100%
rename from builtin-merge-base.c
rename to builtin/merge-base.c
similarity index 100%
rename from builtin-merge-file.c
rename to builtin/merge-file.c
similarity index 100%
rename from builtin-merge-index.c
rename to builtin/merge-index.c
similarity index 100%
rename from builtin-merge-ours.c
rename to builtin/merge-ours.c
similarity index 100%
rename from builtin-merge-tree.c
rename to builtin/merge-tree.c
similarity index 100%
rename from builtin-merge.c
rename to builtin/merge.c
similarity index 100%
rename from builtin-mktag.c
rename to builtin/mktag.c
similarity index 100%
rename from builtin-mktree.c
rename to builtin/mktree.c
similarity index 100%
rename from builtin-mv.c
rename to builtin/mv.c
similarity index 100%
rename from builtin-name-rev.c
rename to builtin/name-rev.c
similarity index 100%
rename from builtin-pack-refs.c
rename to builtin/pack-refs.c
similarity index 100%
rename from builtin-patch-id.c
rename to builtin/patch-id.c
similarity index 100%
rename from builtin-prune.c
rename to builtin/prune.c
similarity index 100%
rename from builtin-push.c
rename to builtin/push.c
similarity index 100%
rename from builtin-read-tree.c
rename to builtin/read-tree.c
similarity index 100%
rename from builtin-reflog.c
rename to builtin/reflog.c
similarity index 100%
rename from builtin-remote.c
rename to builtin/remote.c
similarity index 100%
rename from builtin-replace.c
rename to builtin/replace.c
similarity index 100%
rename from builtin-rerere.c
rename to builtin/rerere.c
similarity index 100%
rename from builtin-reset.c
rename to builtin/reset.c
similarity index 100%
rename from builtin-rev-list.c
rename to builtin/rev-list.c
similarity index 100%
rename from builtin-rev-parse.c
rename to builtin/rev-parse.c
similarity index 100%
rename from builtin-revert.c
rename to builtin/revert.c
similarity index 100%
rename from builtin-rm.c
rename to builtin/rm.c
similarity index 100%
rename from builtin-send-pack.c
rename to builtin/send-pack.c
similarity index 100%
rename from builtin-shortlog.c
rename to builtin/shortlog.c
similarity index 100%
rename from builtin-show-branch.c
rename to builtin/show-branch.c
similarity index 100%
rename from builtin-show-ref.c
rename to builtin/show-ref.c
similarity index 100%
rename from builtin-stripspace.c
rename to builtin/stripspace.c
similarity index 100%
rename from builtin-tag.c
rename to builtin/tag.c
similarity index 100%
rename from builtin-tar-tree.c
rename to builtin/tar-tree.c
similarity index 100%
rename from builtin-unpack-file.c
rename to builtin/unpack-file.c
similarity index 100%
rename from builtin-update-ref.c
rename to builtin/update-ref.c
similarity index 100%
rename from builtin-var.c
rename to builtin/var.c
similarity index 100%
rename from builtin-verify-pack.c
rename to builtin/verify-pack.c
similarity index 100%
rename from builtin-verify-tag.c
rename to builtin/verify-tag.c
similarity index 100%
rename from builtin-write-tree.c
rename to builtin/write-tree.c