Merge branch 'ma/branch-list-paginate'
"git branch --list" learned to show its output through the pager by default when the output is going to a terminal, which is controlled by the pager.branch configuration variable. This is similar to a recent change to "git tag --list". * ma/branch-list-paginate: branch: change default of `pager.branch` to "on" branch: respect `pager.branch` in list-mode only t7006: add tests for how git branch paginates
This commit is contained in:
@ -675,6 +675,9 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
|
||||
copy *= 2;
|
||||
}
|
||||
|
||||
if (list)
|
||||
setup_auto_pager("branch", 1);
|
||||
|
||||
if (delete) {
|
||||
if (!argc)
|
||||
die(_("branch name required"));
|
||||
|
||||
Reference in New Issue
Block a user