Martin Ågren
de121ffe57
tag: respect pager.tag in list-mode only
...
Using, e.g., `git -c pager.tag tag -a new-tag` results in errors such as
"Vim: Warning: Output is not to a terminal" and a garbled terminal.
Someone who makes use of both `git tag -a` and `git tag -l` will
probably not set `pager.tag`, so that `git tag -a` will actually work,
at the cost of not paging output of `git tag -l`.
Use the mechanisms introduced in two earlier patches to ignore
`pager.tag` in git.c and let the `git tag` builtin handle it on its own.
Only respect `pager.tag` when running in list-mode.
There is a window between where the pager is started before and after
this patch. This means that early errors can behave slightly different
before and after this patch. Since operation-parsing has to happen
inside this window, this can be seen with `git -c pager.tag="echo pager
is used" tag -l --unknown-option`. This change in paging-behavior should
be acceptable since it only affects erroneous usages.
Update the documentation and update tests.
If an alias is used to run `git tag -a`, then `pager.tag` will still be
respected. Document this known breakage. It will be fixed in a later
commit. Add a similar test for `-l`, which works.
Noticed-by: Anatoly Borodin <anatoly.borodin@gmail.com >
Suggested-by: Jeff King <peff@peff.net >
Signed-off-by: Martin Ågren <martin.agren@gmail.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2017-08-03 11:08:10 -07:00
..
2017-04-20 22:05:37 -07:00
2017-07-31 13:52:53 -07:00
2017-08-03 11:08:10 -07:00
2017-01-31 12:18:18 -08:00
2017-02-24 10:48:08 -08:00
2017-01-23 10:56:47 -08:00
2015-05-21 13:03:37 -07:00
2017-06-05 09:03:10 +09:00
2017-07-06 18:14:46 -07:00
2017-01-17 15:19:08 -08:00
2017-01-23 15:59:23 -08:00
2017-03-02 11:40:51 -08:00
2017-03-02 11:40:51 -08:00
2016-12-23 12:32:22 -08:00
2017-03-02 11:40:51 -08:00
2016-05-09 15:44:14 -07:00
2016-10-10 14:03:50 -07:00
2015-05-28 12:38:46 -07:00
2017-06-15 09:10:44 -07:00
2016-07-13 11:24:14 -07:00
2016-09-19 10:25:11 -07:00
2017-03-02 11:40:51 -08:00
2017-04-20 22:05:38 -07:00
2014-02-28 09:55:35 -08:00
2017-05-09 21:13:13 -07:00
2017-04-01 11:35:45 -07:00
2016-10-10 14:03:51 -07:00
2017-04-11 00:21:50 -07:00
2016-02-01 13:07:41 -08:00
2016-09-11 14:48:15 -07:00
2015-10-16 15:27:52 -07:00
2016-05-09 15:44:14 -07:00
2017-02-21 13:02:42 -08:00
2017-03-16 14:07:16 -07:00
2016-07-28 11:25:54 -07:00
2016-06-28 08:20:52 -07:00
2017-05-01 11:09:44 +09:00
2014-01-27 08:34:34 -08:00
2016-07-28 11:25:54 -07:00
2017-07-18 15:04:49 -07:00
2016-09-08 21:35:56 -07:00
2016-10-10 13:52:37 -07:00
2014-09-16 11:11:58 -07:00
2017-03-17 11:19:40 -07:00
2016-06-28 08:36:45 -07:00
2016-10-03 13:22:25 -07:00
2016-06-28 08:36:45 -07:00
2016-06-28 08:36:45 -07:00
2017-03-22 10:13:41 -07:00
2016-06-28 08:36:45 -07:00
2016-06-28 08:36:45 -07:00
2017-04-13 16:15:25 -07:00
2017-02-08 13:30:28 -08:00
2015-05-12 22:14:46 -07:00
2017-06-12 09:50:33 -07:00
2016-11-18 13:06:14 -08:00
2017-01-17 15:19:10 -08:00
2017-06-12 09:44:54 -07:00
2016-10-28 05:51:51 -07:00
2017-03-24 12:15:26 -07:00
2017-04-23 22:07:55 -07:00
2016-07-18 15:15:59 -07:00
2017-02-24 09:59:12 -08:00
2015-10-16 15:27:52 -07:00
2017-05-21 08:25:37 +09:00
2017-01-13 12:23:28 -08:00
2015-10-16 15:27:52 -07:00
2016-06-28 08:36:45 -07:00
2016-06-08 12:04:37 -07:00
2016-06-28 08:36:45 -07:00
2015-03-10 15:19:05 -07:00
2016-08-24 12:31:05 -07:00
2017-02-17 15:57:21 -08:00
2016-06-08 12:04:55 -07:00
2017-05-23 14:18:26 +09:00
2016-07-11 10:31:08 -07:00
2017-04-16 23:29:30 -07:00
2016-01-19 10:07:56 -08:00
2017-03-02 11:40:51 -08:00
2016-05-26 13:17:14 -07:00
2016-06-06 11:14:43 -07:00
2016-10-21 09:46:48 -07:00
2015-10-29 12:10:23 -07:00
2017-03-30 14:07:13 -07:00
2016-10-11 10:04:31 -07:00
2015-10-16 15:27:52 -07:00
2016-06-28 08:20:52 -07:00
2016-06-28 08:20:52 -07:00
2017-01-23 18:33:17 -08:00
2016-06-28 08:20:52 -07:00
2017-01-18 15:12:12 -08:00
2016-08-10 10:55:13 -07:00
2015-10-16 15:27:52 -07:00
2014-10-13 13:35:18 -07:00
2015-06-29 08:48:44 -07:00
2017-07-13 16:14:54 -07:00
2017-04-19 18:53:06 -07:00
2016-06-08 12:04:37 -07:00
2017-06-04 10:20:59 +09:00
2017-07-21 15:03:39 -07:00
2017-04-16 18:19:18 -07:00
2015-07-21 14:08:14 -07:00
2014-11-11 14:47:04 -08:00
2016-08-11 14:35:42 -07:00
2016-06-28 08:36:45 -07:00
2017-04-27 08:09:25 +09:00
2016-06-08 12:04:37 -07:00
2015-09-14 12:50:33 -07:00
2015-03-13 22:13:46 -07:00
2017-06-27 10:35:49 -07:00
2015-10-05 12:30:13 -07:00
2017-06-01 10:37:42 +09:00
2016-06-28 08:36:45 -07:00
2017-07-12 15:18:21 -07:00
2017-07-06 18:14:46 -07:00
2017-03-22 15:41:21 -07:00
2016-06-08 12:04:37 -07:00
2016-06-28 08:20:52 -07:00
2016-12-16 09:39:10 -08:00
2016-06-28 08:36:45 -07:00
2015-10-16 15:27:52 -07:00
2016-06-28 08:36:45 -07:00
2015-05-12 22:14:46 -07:00
2014-10-13 13:35:18 -07:00
2017-06-18 22:16:36 -07:00
2017-06-18 22:17:47 -07:00
2015-10-16 15:27:52 -07:00
2017-07-12 15:18:21 -07:00
2017-06-15 01:09:31 +00:00
2017-08-03 11:08:10 -07:00
2017-04-20 22:05:37 -07:00
2016-08-24 12:31:05 -07:00
2017-03-06 12:09:28 -08:00
2015-07-21 14:08:35 -07:00
2015-10-22 10:16:12 -07:00
2016-05-31 10:17:20 -07:00
2016-07-06 13:06:36 -07:00
2015-05-17 11:24:57 -07:00
2017-01-17 16:10:22 -08:00
2016-06-28 08:36:45 -07:00
2017-04-20 17:59:02 -07:00
2017-06-05 09:05:38 +09:00
2017-06-15 10:55:47 -07:00
2017-06-18 22:16:36 -07:00
2017-04-20 22:05:38 -07:00
2017-05-02 10:58:06 +09:00
2017-02-15 12:54:20 -08:00
2017-02-28 11:34:38 -08:00
2017-01-07 14:03:40 -08:00
2017-02-09 15:14:01 -08:00
2017-05-16 11:13:00 +09:00
2016-06-08 12:04:55 -07:00
2017-01-18 15:12:18 -08:00
2017-04-26 15:39:07 +09:00
2016-11-14 11:23:07 -08:00
2017-05-01 11:01:52 +09:00
2017-02-15 12:54:20 -08:00
2016-08-13 19:36:44 -07:00
2017-06-22 15:25:25 -07:00
2017-02-09 15:14:01 -08:00
2017-02-09 15:14:01 -08:00
2017-04-20 22:05:37 -07:00
2017-05-15 13:04:54 +09:00
2017-02-09 15:14:01 -08:00
2017-06-18 22:18:15 -07:00
2014-04-17 11:14:57 -07:00
2017-07-17 15:11:26 -07:00
2014-04-17 11:14:58 -07:00
2015-04-20 11:05:50 -07:00
2016-05-10 11:15:04 -07:00
2017-06-22 15:25:25 -07:00
2016-06-08 12:04:37 -07:00
2016-05-17 14:38:39 -07:00
2016-02-22 10:42:52 -08:00
2017-07-10 13:59:05 -07:00
2016-07-06 13:06:34 -07:00
2014-06-12 09:59:13 -07:00
2017-06-22 14:15:25 -07:00
2017-04-19 21:37:25 -07:00
2017-05-04 16:26:46 +09:00
2017-01-23 10:56:53 -08:00
2016-11-14 11:23:07 -08:00
2015-10-22 10:16:12 -07:00
2016-02-01 13:07:41 -08:00
2017-01-13 10:30:16 -08:00