Skip to content

Commit 1d56384

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
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 77de3b7 + e8d3336 commit 1d56384

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
@@ -757,6 +757,7 @@ TEST_BUILTINS_OBJS += test-online-cpus.o
757757
TEST_BUILTINS_OBJS += test-parse-options.o
758758
TEST_BUILTINS_OBJS += test-path-utils.o
759759
TEST_BUILTINS_OBJS += test-pkt-line.o
760+
TEST_BUILTINS_OBJS += test-prefix-map.o
760761
TEST_BUILTINS_OBJS += test-prio-queue.o
761762
TEST_BUILTINS_OBJS += test-reach.o
762763
TEST_BUILTINS_OBJS += test-read-cache.o
@@ -851,6 +852,8 @@ LIB_H = $(shell $(FIND) . \
851852
-name '*.h' -print)
852853

853854
LIB_OBJS += abspath.o
855+
LIB_OBJS += add-interactive.o
856+
LIB_OBJS += add-patch.o
854857
LIB_OBJS += advice.o
855858
LIB_OBJS += alias.o
856859
LIB_OBJS += alloc.o
@@ -969,6 +972,7 @@ LIB_OBJS += patch-ids.o
969972
LIB_OBJS += path.o
970973
LIB_OBJS += pathspec.o
971974
LIB_OBJS += pkt-line.o
975+
LIB_OBJS += prefix-map.o
972976
LIB_OBJS += preload-index.o
973977
LIB_OBJS += pretty.o
974978
LIB_OBJS += prio-queue.o

0 commit comments

Comments
 (0)