Skip to content

allBranchesLogCmds always includes default log command #3961

Open
@MartinHammarstedt

Description

@MartinHammarstedt

Describe the bug

According to the config documentation, the setting git.allBranchesLogCmd is deprecated in favor of git.allBranchesLogCmds. As far as I understand the following two configurations should be equal:

git:
  allBranchesLogCmd: git log --graph --oneline
git:
  allBranchesLogCmds:
    - git log --graph --oneline

However, when using allBranchesLogCmds, the default log command seems to be included in the cycle, meaning that you can't limit it to your desired configurations.

To Reproduce
Steps to reproduce the behavior:

  1. Use the above git.allBranchesLogCmds setting with one single log command.
  2. Go to the Status panel.
  3. Tap a to display the log.
  4. Tap a again, and notice that it now shows a differently formatted log.

Similarly if you have the gui.statusPanelView: allBranchesLog setting activated, you'll get a different log view every time you navigate to the Status panel.

Expected behavior
allBranchesLogCmds should not automatically include the default log command.

Version info:
commit=611fabde11d24d9acc71ee26077b9a1101f59f27, build date=2024-09-18T10:56:10Z, build source=binaryRelease, version=0.44.1, os=linux, arch=amd64, git version=2.43.0
git version 2.43.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions