Skip to content

Commit f5bbc32

Browse files
Kristian Høgsberggitster
authored andcommitted
Port git commit to C.
This makes git commit a builtin and moves git-commit.sh to contrib/examples. This also removes the git-runstatus helper, which was mostly just a git-status.sh implementation detail. Signed-off-by: Kristian Høgsberg <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 943316e commit f5bbc32

File tree

6 files changed

+621
-9
lines changed

6 files changed

+621
-9
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ git-rev-list
109109
git-rev-parse
110110
git-revert
111111
git-rm
112-
git-runstatus
113112
git-send-email
114113
git-send-pack
115114
git-sh-setup

Makefile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ BASIC_LDFLAGS =
213213

214214
SCRIPT_SH = \
215215
git-bisect.sh git-checkout.sh \
216-
git-clean.sh git-clone.sh git-commit.sh \
216+
git-clean.sh git-clone.sh \
217217
git-ls-remote.sh \
218218
git-merge-one-file.sh git-mergetool.sh git-parse-remote.sh \
219219
git-pull.sh git-rebase.sh git-rebase--interactive.sh \
@@ -260,7 +260,7 @@ EXTRA_PROGRAMS =
260260
BUILT_INS = \
261261
git-format-patch$X git-show$X git-whatchanged$X git-cherry$X \
262262
git-get-tar-commit-id$X git-init$X git-repo-config$X \
263-
git-fsck-objects$X git-cherry-pick$X \
263+
git-fsck-objects$X git-cherry-pick$X git-status$X\
264264
$(patsubst builtin-%.o,git-%$X,$(BUILTIN_OBJS))
265265

266266
# what 'all' will build and 'install' will install, in gitexecdir
@@ -330,6 +330,7 @@ BUILTIN_OBJS = \
330330
builtin-check-attr.o \
331331
builtin-checkout-index.o \
332332
builtin-check-ref-format.o \
333+
builtin-commit.o \
333334
builtin-commit-tree.o \
334335
builtin-count-objects.o \
335336
builtin-describe.o \
@@ -369,7 +370,6 @@ BUILTIN_OBJS = \
369370
builtin-rev-parse.o \
370371
builtin-revert.o \
371372
builtin-rm.o \
372-
builtin-runstatus.o \
373373
builtin-shortlog.o \
374374
builtin-show-branch.o \
375375
builtin-stripspace.o \
@@ -838,9 +838,6 @@ $(patsubst %.perl,%,$(SCRIPT_PERL)): % : %.perl
838838
chmod +x $@+ && \
839839
mv $@+ $@
840840

841-
git-status: git-commit
842-
$(QUIET_GEN)cp $< $@+ && mv $@+ $@
843-
844841
gitweb/gitweb.cgi: gitweb/gitweb.perl
845842
$(QUIET_GEN)$(RM) $@ $@+ && \
846843
sed -e '1s|#!.*perl|#!$(PERL_PATH_SQ)|' \

0 commit comments

Comments
 (0)