Skip to content

Commit a7fada4

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 2dd86f3 + 09320af commit a7fada4

28 files changed

+3449
-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
@@ -832,6 +833,8 @@ LIB_H := $(sort $(shell git ls-files '*.h' ':!t/' ':!Documentation/' 2>/dev/null
832833
-name '*.h' -print))
833834

834835
LIB_OBJS += abspath.o
836+
LIB_OBJS += add-interactive.o
837+
LIB_OBJS += add-patch.o
835838
LIB_OBJS += advice.o
836839
LIB_OBJS += alias.o
837840
LIB_OBJS += alloc.o
@@ -949,6 +952,7 @@ LIB_OBJS += patch-ids.o
949952
LIB_OBJS += path.o
950953
LIB_OBJS += pathspec.o
951954
LIB_OBJS += pkt-line.o
955+
LIB_OBJS += prefix-map.o
952956
LIB_OBJS += preload-index.o
953957
LIB_OBJS += pretty.o
954958
LIB_OBJS += prio-queue.o

0 commit comments

Comments
 (0)