diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2020-04-10 11:27:50 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-04-10 10:26:31 -0700 |
commit | 08d383f23e80e418c844952fcc4e2e635962c292 (patch) | |
tree | 224078e2c20f9b24a935a4afa0c42799aaa69963 /Makefile | |
parent | Merge branch 'ds/default-pack-use-sparse-to-true' (diff) | |
download | tgif-08d383f23e80e418c844952fcc4e2e635962c292.tar.xz |
interactive: refactor code asking the user for interactive input
There are quite a few code locations (e.g. `git clean --interactive`)
where Git asks the user for an answer. In preparation for fixing a bug
shared by all of them, and also to DRY up the code, let's refactor it.
Please note that most of these callers trimmed white-space both at the
beginning and at the end of the answer, instead of trimming only the
end (as the caller in `add-patch.c` does).
Therefore, technically speaking, we change behavior in this patch. At
the same time, it can be argued that this is actually a bug fix.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions