Skip to contentSkip to conversation

Builtin git-commit-tree.

PATCH New Peter Eriksen 1 participant 1 message Jun 15, 2016 1 message not in the archive Kbuild

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 11483730804133-git-send-email-

#1 lore raw

PATCH 5/8 Builtin git-commit-tree.

From: Peter Eriksen <[email protected]>

---

762e5a2efcde796d84c573fe8bf3224c9fbf3588

 Makefile              |    6 +-
 builtin-commit-tree.c |  140 +++++++++++++++++++++++++++++++++++++++++++++++++
 builtin.h             |    1 
 commit-tree.c         |  139 -------------------------------------------------
 git.c                 |    3 +
 5 files changed, 146 insertions(+), 143 deletions(-)
 create mode 100644 builtin-commit-tree.c
 delete mode 100644 commit-tree.c

762e5a2efcde796d84c573fe8bf3224c9fbf3588

Makefile +3 -3
index 667fa5d..a5efbc7 100644
@@ -150,7 +150,7 @@ SIMPLE_PROGRAMS = \
 # ... and all the rest that could be moved out of bindir to gitexecdir
 PROGRAMS = \
 	git-apply$X git-cat-file$X \
-	git-checkout-index$X git-clone-pack$X git-commit-tree$X \
+	git-checkout-index$X git-clone-pack$X \
 	git-convert-objects$X git-diff-files$X \
 	git-diff-index$X git-diff-stages$X \
 	git-diff-tree$X git-fetch-pack$X git-fsck-objects$X \
@@ -172,7 +172,7 @@ BUILT_INS = git-log$X git-whatchanged$X 
 	git-count-objects$X git-diff$X git-push$X \
 	git-grep$X git-rev-list$X git-check-ref-format$X \
 	git-init-db$X git-ls-files$X git-ls-tree$X \
-	git-tar-tree$X git-read-tree$X
+	git-tar-tree$X git-read-tree$X git-commit-tree$X
 
 # what 'all' will build and 'install' will install, in gitexecdir
 ALL_PROGRAMS = $(PROGRAMS) $(SIMPLE_PROGRAMS) $(SCRIPTS)
@@ -222,7 +222,7 @@ BUILTIN_OBJS = \
 	builtin-log.o builtin-help.o builtin-count.o builtin-diff.o builtin-push.o \
 	builtin-grep.o builtin-rev-list.o builtin-check-ref-format.o \
 	builtin-init-db.o builtin-ls-files.o builtin-ls-tree.o \
-        builtin-tar-tree.o builtin-read-tree.o
+        builtin-tar-tree.o builtin-read-tree.o builtin-commit-tree.o
 
 GITLIBS = $(LIB_FILE) $(XDIFF_LIB)
 LIBS = $(GITLIBS) -lz
builtin-commit-tree.c new file +140 -0

140 lines not on this page · raw message

builtin.h +1 -0
index 88b3523..c6b07d9 100644
@@ -31,5 +31,6 @@ extern int cmd_ls_files(int argc, const 
 extern int cmd_ls_tree(int argc, const char **argv, char **envp);
 extern int cmd_tar_tree(int argc, const char **argv, char **envp);
 extern int cmd_read_tree(int argc, const char **argv, char **envp);
+extern int cmd_commit_tree(int argc, const char **argv, char **envp);
 
 #endif
commit-tree.c deleted +0 -139

139 lines not on this page · raw message

git.c +2 -1
index 300e2b2..4c2c062 100644
@@ -56,7 +56,8 @@ static void handle_internal_command(int 
 		{ "ls-files", cmd_ls_files },
 		{ "ls-tree", cmd_ls_tree },
 		{ "tar-tree", cmd_tar_tree },
-		{ "read-tree", cmd_read_tree }
+		{ "read-tree", cmd_read_tree },
+		{ "commit-tree", cmd_commit_tree }
 	};
 	int i;
 
Signature · 1 line
1.3.3.g288c