aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorDaniel Ferreira <bnmvco@gmail.com>2019-11-13 12:40:59 +0000
committerJunio C Hamano <gitster@pobox.com>2019-11-14 11:10:04 +0900
commit5e82b9e4d2bac376a817b2b48849ec061c137e49 (patch)
tree455afb0cbe4aea40ddf8a3183a1941e207094db7 /builtin/commit.c
parentdiff: export diffstat interface (diff)
downloadgit-5e82b9e4d2bac376a817b2b48849ec061c137e49.tar.gz
git-5e82b9e4d2bac376a817b2b48849ec061c137e49.zip
built-in add -i: implement the `status` command
This implements the `status` command of `git add -i`. The data structures introduced in this commit will be extended later, as needed. At this point, we re-implement only part of the `list_and_choose()` function of the Perl script `git-add--interactive.perl` and call it `list()`. It does not yet color anything, or do columns, or allow user input. Over the course of the next commits, we will introduce a `list_and_choose()` function that uses `list()` to display the list of options and let the user choose one or more of the displayed items. This will be used to implement the main loop of the built-in `git add -i`, at which point the new `status` command can actually be used. Signed-off-by: Daniel Ferreira <bnmvco@gmail.com> Signed-off-by: Slavica Đukić <slawica92@hotmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions