Skip to content

Commit a2e595b

Browse files
committed
Merge pull request #2150 from dscho/add-p-gfw
Offer a built-in version of `git add -i` and `git add -p`
2 parents c86e6df + c3eb201 commit a2e595b

28 files changed

+3448
-69
lines changed

Documentation/config/add.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ add.ignore-errors (deprecated)::
55
option of linkgit:git-add[1]. `add.ignore-errors` is deprecated,
66
as it does not follow the usual naming convention for configuration
77
variables.
8+
9+
add.interactive.useBuiltin::
10+
[EXPERIMENTAL] Set to `true` to use the experimental built-in
11+
implementation of the interactive version of linkgit:git-add[1]
12+
instead of the Perl script version. Is `false` by default.

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ TEST_BUILTINS_OBJS += test-online-cpus.o
733733
TEST_BUILTINS_OBJS += test-parse-options.o
734734
TEST_BUILTINS_OBJS += test-path-utils.o
735735
TEST_BUILTINS_OBJS += test-pkt-line.o
736+
TEST_BUILTINS_OBJS += test-prefix-map.o
736737
TEST_BUILTINS_OBJS += test-prio-queue.o
737738
TEST_BUILTINS_OBJS += test-reach.o
738739
TEST_BUILTINS_OBJS += test-read-cache.o
@@ -830,6 +831,8 @@ LIB_H := $(sort $(shell git ls-files '*.h' ':!t/' ':!Documentation/' 2>/dev/null
830831
-name '*.h' -print))
831832

832833
LIB_OBJS += abspath.o
834+
LIB_OBJS += add-interactive.o
835+
LIB_OBJS += add-patch.o
833836
LIB_OBJS += advice.o
834837
LIB_OBJS += alias.o
835838
LIB_OBJS += alloc.o
@@ -948,6 +951,7 @@ LIB_OBJS += patch-ids.o
948951
LIB_OBJS += path.o
949952
LIB_OBJS += pathspec.o
950953
LIB_OBJS += pkt-line.o
954+
LIB_OBJS += prefix-map.o
951955
LIB_OBJS += preload-index.o
952956
LIB_OBJS += pretty.o
953957
LIB_OBJS += prio-queue.o

0 commit comments

Comments
 (0)