Skip to content

Status bar does not show number of commits (ahead or behind) #581

@lapega

Description

@lapega
  • Sublime Text 4200
  • Macos 15.6.1
  • GitGutter 1.11.13

I have a customized status bar text:

"status_bar_text": [
        "{% if repo and branch %}",

            "{% if ahead + behind > 0 %}",
                "🔺 {{ ahead + behind }} commits |",
            "{% endif %}",

            "{% if added_files + deleted_files + modified_files > 0 %}",
                "🔸 {{ added_files + deleted_files + modified_files }} files | ",
            "{% endif %}",

            "{% if state != 'committed' %}",
                "🔹 {{ state }}",
            "{% endif %}",

        "{% endif %}"
    ]

But it doesn't recognize the numbers of commits:

$ git status
En la rama master
Tu rama está detrás de 'origin/master' por 1 commit, y puede ser avanzada rápido.
  (usa "git pull" para actualizar tu rama local)

nada para hacer commit, el árbol de trabajo está limpio

Image

Also tried to put the parameters {{ahead}} and {{behind}} and boths shows zero.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions