Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-08-11 23:27:07 +0300
committerJunio C Hamano <gitster@pobox.com>2017-08-11 23:27:07 +0300
commit297872f0c2a1d97c3e62d8ac9d57bdc218bc1228 (patch)
tree3c16bac54368e29d74d20c92a77757c6adaa4cea /builtin
parent8fbaf0b13bc54819445f613e917c44ea52eef804 (diff)
parent595d59e2b53a19f8c5c277348e4e1a07bb913ba4 (diff)
Merge branch 'ma/pager-per-subcommand-action'
The "tag.pager" configuration variable was useless for those who actually create tag objects, as it interfered with the use of an editor. A new mechanism has been introduced for commands to enable pager depending on what operation is being carried out to fix this, and then "git tag -l" is made to run pager by default. * ma/pager-per-subcommand-action: git.c: ignore pager.* when launching builtin as dashed external tag: change default of `pager.tag` to "on" tag: respect `pager.tag` in list-mode only t7006: add tests for how git tag paginates git.c: provide setup_auto_pager() git.c: let builtins opt for handling `pager.foo` themselves builtin.h: take over documentation from api-builtin.txt
Diffstat (limited to 'builtin')
-rw-r--r--builtin/tag.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/tag.c b/builtin/tag.c
index e8a30e6110..c627794181 100644
--- a/builtin/tag.c
+++ b/builtin/tag.c
@@ -440,6 +440,9 @@ int cmd_tag(int argc, const char **argv, const char *prefix)
cmdmode = 'l';
}
+ if (cmdmode == 'l')
+ setup_auto_pager("tag", 1);
+
if ((create_tag_object || force) && (cmdmode != 0))
usage_with_options(git_tag_usage, options);