Johannes Schindelin
08d383f23e
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>
2020-04-10 10:26:31 -07:00
..
2020-02-14 12:54:19 -08:00
2020-02-20 13:20:41 -08:00
2018-08-13 14:14:44 -07:00
2019-01-02 13:05:30 -08:00
2020-02-19 09:37:14 -08:00
2019-12-01 09:04:30 -08:00
2019-12-09 12:30:55 -08:00
2019-11-11 11:46:29 +09:00
2020-03-16 11:37:02 -07:00
2019-01-24 11:55:06 -08:00
2020-02-18 15:28:58 -08:00
2017-11-15 12:04:57 +09:00
2019-02-06 22:05:23 -08:00
2020-03-16 11:37:02 -07:00
2020-04-10 10:26:31 -07:00
2020-03-26 17:11:20 -07:00
2019-05-13 14:22:53 +09:00
2020-03-10 11:41:40 -07:00
2019-03-08 10:31:24 +09:00
2020-03-26 17:11:20 -07:00
2020-02-10 10:49:12 -08:00
2018-11-13 14:22:02 +09:00
2020-03-26 17:11:21 -07:00
2019-01-24 11:55:06 -08:00
2019-01-24 11:55:06 -08:00
2019-03-07 09:59:54 +09:00
2019-04-25 16:41:12 +09:00
2019-10-07 10:20:12 +09:00
2019-07-11 14:31:04 -07:00
2020-02-14 12:54:22 -08:00
2019-03-20 18:34:09 +09:00
2020-03-02 15:07:19 -08:00
2020-03-15 09:46:28 -07:00
2019-03-21 12:03:35 +09:00
2019-10-28 14:05:18 +09:00
2020-02-04 11:36:37 -08:00
2019-04-01 11:57:39 +09:00
2020-02-14 12:54:20 -08:00
2019-05-13 14:22:53 +09:00
2019-02-20 12:31:56 -08:00
2020-02-14 12:54:24 -08:00
2020-03-26 17:11:20 -07:00
2019-06-19 07:12:49 -07:00
2019-12-25 11:21:58 -08:00
2019-09-30 13:19:32 +09:00
2019-03-21 12:03:35 +09:00
2019-01-14 15:29:28 -08:00
2020-02-11 09:59:39 -08:00
2018-11-06 12:56:29 +09:00
2019-01-24 11:55:06 -08:00
2019-01-24 11:55:06 -08:00
2019-08-19 10:08:03 -07:00
2019-08-22 12:34:10 -07:00
2020-01-15 14:06:06 -08:00
2020-01-31 10:45:39 -08:00
2019-05-13 14:22:54 +09:00
2019-10-23 12:05:06 +09:00
2019-01-24 11:55:06 -08:00
2020-02-05 10:36:33 -08:00
2020-02-10 09:04:45 -08:00
2020-03-29 09:32:51 -07:00
2019-04-01 11:57:38 +09:00
2019-04-26 10:54:03 +09:00
2019-12-09 12:26:40 -08:00
2019-03-07 09:59:55 +09:00
2019-06-20 10:18:09 -07:00
2020-03-10 13:06:41 -07:00
2019-11-27 11:18:39 +09:00
2019-12-06 12:36:53 -08:00
2019-11-22 16:11:44 +09:00
2020-03-26 17:11:20 -07:00
2020-02-24 11:14:43 -08:00
2020-01-31 13:03:45 -08:00
2017-09-22 12:49:57 +09:00
2020-02-10 10:52:10 -08:00
2019-11-10 18:02:14 +09:00
2020-01-31 10:45:39 -08:00
2019-01-15 15:38:29 -08:00
2020-03-16 11:37:02 -07:00
2020-02-18 13:21:46 -08:00
2020-03-10 11:41:40 -07:00
2019-07-19 11:30:21 -07:00
2020-02-19 10:56:49 -08:00
2019-01-02 13:05:30 -08:00
2018-12-15 12:24:33 +09:00
2020-02-24 09:30:31 -08:00
2019-08-19 15:04:59 -07:00
2019-05-19 16:45:30 +09:00
2020-03-05 10:43:02 -08:00
2020-03-26 17:11:21 -07:00
2018-12-26 15:41:47 -08:00
2020-03-18 12:43:25 -07:00
2017-11-06 10:31:08 +09:00
2020-03-05 06:15:04 -08:00
2018-05-16 11:42:03 +09:00
2020-01-31 10:45:39 -08:00
2019-11-10 18:02:16 +09:00
2018-09-12 15:17:17 -07:00
2018-02-09 10:24:50 -08:00
2018-10-26 10:17:59 +09:00
2019-05-13 14:22:53 +09:00
2019-07-31 14:38:56 -07:00
2019-06-19 08:19:21 -07:00
2020-03-10 11:41:40 -07:00
2019-05-13 14:22:53 +09:00