Browse Source

Merge branch 'lt/deepen-builtin-source'

* lt/deepen-builtin-source:
  Move 'builtin-*' into a 'builtin/' subdirectory

Conflicts:
	Makefile
maint
Junio C Hamano 15 years ago
parent
commit
2e0e8b68e3
  1. 214
      Makefile
  2. 0
      builtin/add.c
  3. 0
      builtin/annotate.c
  4. 0
      builtin/apply.c
  5. 0
      builtin/archive.c
  6. 0
      builtin/bisect--helper.c
  7. 0
      builtin/blame.c
  8. 0
      builtin/branch.c
  9. 0
      builtin/bundle.c
  10. 0
      builtin/cat-file.c
  11. 0
      builtin/check-attr.c
  12. 0
      builtin/check-ref-format.c
  13. 0
      builtin/checkout-index.c
  14. 0
      builtin/checkout.c
  15. 0
      builtin/clean.c
  16. 0
      builtin/clone.c
  17. 0
      builtin/commit-tree.c
  18. 0
      builtin/commit.c
  19. 0
      builtin/config.c
  20. 0
      builtin/count-objects.c
  21. 0
      builtin/describe.c
  22. 0
      builtin/diff-files.c
  23. 0
      builtin/diff-index.c
  24. 0
      builtin/diff-tree.c
  25. 0
      builtin/diff.c
  26. 0
      builtin/fast-export.c
  27. 0
      builtin/fetch-pack.c
  28. 0
      builtin/fetch.c
  29. 0
      builtin/fmt-merge-msg.c
  30. 0
      builtin/for-each-ref.c
  31. 0
      builtin/fsck.c
  32. 0
      builtin/gc.c
  33. 0
      builtin/grep.c
  34. 0
      builtin/hash-object.c
  35. 0
      builtin/help.c
  36. 0
      builtin/index-pack.c
  37. 0
      builtin/init-db.c
  38. 0
      builtin/log.c
  39. 0
      builtin/ls-files.c
  40. 0
      builtin/ls-remote.c
  41. 0
      builtin/ls-tree.c
  42. 0
      builtin/mailinfo.c
  43. 0
      builtin/mailsplit.c
  44. 0
      builtin/merge-base.c
  45. 0
      builtin/merge-file.c
  46. 0
      builtin/merge-index.c
  47. 0
      builtin/merge-ours.c
  48. 0
      builtin/merge-recursive.c
  49. 0
      builtin/merge-tree.c
  50. 0
      builtin/merge.c
  51. 0
      builtin/mktag.c
  52. 0
      builtin/mktree.c
  53. 0
      builtin/mv.c
  54. 0
      builtin/name-rev.c
  55. 0
      builtin/pack-objects.c
  56. 0
      builtin/pack-redundant.c
  57. 0
      builtin/pack-refs.c
  58. 0
      builtin/patch-id.c
  59. 0
      builtin/prune-packed.c
  60. 0
      builtin/prune.c
  61. 0
      builtin/push.c
  62. 0
      builtin/read-tree.c
  63. 0
      builtin/receive-pack.c
  64. 0
      builtin/reflog.c
  65. 0
      builtin/remote.c
  66. 0
      builtin/replace.c
  67. 0
      builtin/rerere.c
  68. 0
      builtin/reset.c
  69. 0
      builtin/rev-list.c
  70. 0
      builtin/rev-parse.c
  71. 0
      builtin/revert.c
  72. 0
      builtin/rm.c
  73. 0
      builtin/send-pack.c
  74. 0
      builtin/shortlog.c
  75. 0
      builtin/show-branch.c
  76. 0
      builtin/show-ref.c
  77. 0
      builtin/stripspace.c
  78. 0
      builtin/symbolic-ref.c
  79. 0
      builtin/tag.c
  80. 0
      builtin/tar-tree.c
  81. 0
      builtin/unpack-file.c
  82. 0
      builtin/unpack-objects.c
  83. 0
      builtin/update-index.c
  84. 0
      builtin/update-ref.c
  85. 0
      builtin/update-server-info.c
  86. 0
      builtin/upload-archive.c
  87. 0
      builtin/var.c
  88. 0
      builtin/verify-pack.c
  89. 0
      builtin/verify-tag.c
  90. 0
      builtin/write-tree.c

214
Makefile

@ -308,7 +308,7 @@ SPARSE_FLAGS = -D__BIG_ENDIAN__ -D__powerpc__ @@ -308,7 +308,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
@ -397,8 +397,8 @@ TEST_PROGRAMS_NEED_X += test-index-version @@ -397,8 +397,8 @@ TEST_PROGRAMS_NEED_X += test-index-version
TEST_PROGRAMS = $(patsubst %,%$X,$(TEST_PROGRAMS_NEED_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
@ -624,95 +624,95 @@ LIB_OBJS += ws.o @@ -624,95 +624,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 =
@ -1487,8 +1487,8 @@ git$X: git.o $(BUILTIN_OBJS) $(GITLIBS) @@ -1487,8 +1487,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)"'
@ -1741,17 +1741,17 @@ else @@ -1741,17 +1741,17 @@ else
# gcc detects!

$(GIT_OBJS): $(LIB_H)
builtin-branch.o builtin-checkout.o builtin-clone.o builtin-reset.o branch.o transport.o: branch.h
builtin-bundle.o bundle.o transport.o: bundle.h
builtin-bisect--helper.o builtin-rev-list.o bisect.o: bisect.h
builtin-clone.o builtin-fetch-pack.o transport.o: fetch-pack.h
builtin-grep.o: thread-utils.h
builtin-send-pack.o transport.o: send-pack.h
builtin-log.o builtin-shortlog.o: shortlog.h
builtin-prune.o builtin-reflog.o reachable.o: reachable.h
builtin-commit.o builtin-revert.o wt-status.o: wt-status.h
builtin-tar-tree.o archive-tar.o: tar.h
builtin-pack-objects.o: thread-utils.h
builtin/branch.o builtin/checkout.o builtin/clone.o builtin/reset.o branch.o transport.o: branch.h
builtin/bundle.o bundle.o transport.o: bundle.h
builtin/bisect--helper.o builtin/rev-list.o bisect.o: bisect.h
builtin/clone.o builtin/fetch-pack.o transport.o: fetch-pack.h
builtin/grep.o: thread-utils.h
builtin/send-pack.o transport.o: send-pack.h
builtin/log.o builtin/shortlog.o: shortlog.h
builtin/prune.o builtin/reflog.o reachable.o: reachable.h
builtin/commit.o builtin/revert.o wt-status.o: wt-status.h
builtin/tar-tree.o archive-tar.o: tar.h
builtin/pack-objects.o: thread-utils.h
http-fetch.o http-walker.o remote-curl.o transport.o walker.o: walker.h
http.o http-walker.o http-push.o remote-curl.o: http.h

@ -1765,7 +1765,7 @@ exec_cmd.s exec_cmd.o: ALL_CFLAGS += \ @@ -1765,7 +1765,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)"'
@ -2063,7 +2063,7 @@ distclean: clean @@ -2063,7 +2063,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

0
builtin-add.c → builtin/add.c

0
builtin-annotate.c → builtin/annotate.c

0
builtin-apply.c → builtin/apply.c

0
builtin-archive.c → builtin/archive.c

0
builtin-bisect--helper.c → builtin/bisect--helper.c

0
builtin-blame.c → builtin/blame.c

0
builtin-branch.c → builtin/branch.c

0
builtin-bundle.c → builtin/bundle.c

0
builtin-cat-file.c → builtin/cat-file.c

0
builtin-check-attr.c → builtin/check-attr.c

0
builtin-check-ref-format.c → builtin/check-ref-format.c

0
builtin-checkout-index.c → builtin/checkout-index.c

0
builtin-checkout.c → builtin/checkout.c

0
builtin-clean.c → builtin/clean.c

0
builtin-clone.c → builtin/clone.c

0
builtin-commit-tree.c → builtin/commit-tree.c

0
builtin-commit.c → builtin/commit.c

0
builtin-config.c → builtin/config.c

0
builtin-count-objects.c → builtin/count-objects.c

0
builtin-describe.c → builtin/describe.c

0
builtin-diff-files.c → builtin/diff-files.c

0
builtin-diff-index.c → builtin/diff-index.c

0
builtin-diff-tree.c → builtin/diff-tree.c

0
builtin-diff.c → builtin/diff.c

0
builtin-fast-export.c → builtin/fast-export.c

0
builtin-fetch-pack.c → builtin/fetch-pack.c

0
builtin-fetch.c → builtin/fetch.c

0
builtin-fmt-merge-msg.c → builtin/fmt-merge-msg.c

0
builtin-for-each-ref.c → builtin/for-each-ref.c

0
builtin-fsck.c → builtin/fsck.c

0
builtin-gc.c → builtin/gc.c

0
builtin-grep.c → builtin/grep.c

0
builtin-hash-object.c → builtin/hash-object.c

0
builtin-help.c → builtin/help.c

0
builtin-index-pack.c → builtin/index-pack.c

0
builtin-init-db.c → builtin/init-db.c

0
builtin-log.c → builtin/log.c

0
builtin-ls-files.c → builtin/ls-files.c

0
builtin-ls-remote.c → builtin/ls-remote.c

0
builtin-ls-tree.c → builtin/ls-tree.c

0
builtin-mailinfo.c → builtin/mailinfo.c

0
builtin-mailsplit.c → builtin/mailsplit.c

0
builtin-merge-base.c → builtin/merge-base.c

0
builtin-merge-file.c → builtin/merge-file.c

0
builtin-merge-index.c → builtin/merge-index.c

0
builtin-merge-ours.c → builtin/merge-ours.c

0
builtin-merge-recursive.c → builtin/merge-recursive.c

0
builtin-merge-tree.c → builtin/merge-tree.c

0
builtin-merge.c → builtin/merge.c

0
builtin-mktag.c → builtin/mktag.c

0
builtin-mktree.c → builtin/mktree.c

0
builtin-mv.c → builtin/mv.c

0
builtin-name-rev.c → builtin/name-rev.c

0
builtin-pack-objects.c → builtin/pack-objects.c

0
builtin-pack-redundant.c → builtin/pack-redundant.c

0
builtin-pack-refs.c → builtin/pack-refs.c

0
builtin-patch-id.c → builtin/patch-id.c

0
builtin-prune-packed.c → builtin/prune-packed.c

0
builtin-prune.c → builtin/prune.c

0
builtin-push.c → builtin/push.c

0
builtin-read-tree.c → builtin/read-tree.c

0
builtin-receive-pack.c → builtin/receive-pack.c

0
builtin-reflog.c → builtin/reflog.c

0
builtin-remote.c → builtin/remote.c

0
builtin-replace.c → builtin/replace.c

0
builtin-rerere.c → builtin/rerere.c

0
builtin-reset.c → builtin/reset.c

0
builtin-rev-list.c → builtin/rev-list.c

0
builtin-rev-parse.c → builtin/rev-parse.c

0
builtin-revert.c → builtin/revert.c

0
builtin-rm.c → builtin/rm.c

0
builtin-send-pack.c → builtin/send-pack.c

0
builtin-shortlog.c → builtin/shortlog.c

0
builtin-show-branch.c → builtin/show-branch.c

0
builtin-show-ref.c → builtin/show-ref.c

0
builtin-stripspace.c → builtin/stripspace.c

0
builtin-symbolic-ref.c → builtin/symbolic-ref.c

0
builtin-tag.c → builtin/tag.c

0
builtin-tar-tree.c → builtin/tar-tree.c

0
builtin-unpack-file.c → builtin/unpack-file.c

0
builtin-unpack-objects.c → builtin/unpack-objects.c

0
builtin-update-index.c → builtin/update-index.c

0
builtin-update-ref.c → builtin/update-ref.c

0
builtin-update-server-info.c → builtin/update-server-info.c

0
builtin-upload-archive.c → builtin/upload-archive.c

0
builtin-var.c → builtin/var.c

0
builtin-verify-pack.c → builtin/verify-pack.c

0
builtin-verify-tag.c → builtin/verify-tag.c

0
builtin-write-tree.c → builtin/write-tree.c

Loading…
Cancel
Save