Skip to content
  • Martin Ågren's avatar
    branch: respect `pager.branch` in list-mode only · d74b541e
    Martin Ågren authored and Junio C Hamano's avatar Junio C Hamano committed
    Similar to de121ffe
    
     (tag: respect `pager.tag` in list-mode only,
    2017-08-02), use the DELAY_PAGER_CONFIG-mechanism to only respect
    `pager.branch` when we are listing branches.
    
    We have two possibilities of generalizing what that earlier commit made
    to `git tag`. One is to interpret, e.g., --set-upstream-to as "it does
    not use an editor, so we should page". Another, the one taken by this
    commit, is to say "it does not list, so let's not page". That is in line
    with the approach of the series on `pager.tag` and in particular the
    wording in Documentation/git-tag.txt, which this commit reuses for
    git-branch.txt.
    
    This fixes the failing test added in the previous commit. Also adapt the
    test for whether `git branch --set-upstream-to` respects `pager.branch`.
    
    Signed-off-by: default avatarMartin Ågren <martin.agren@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    d74b541e