Skip to content

Releases: ghostwheel42/gitprompt

v0.3.0

07 Nov 08:06
2b9f1cb
Compare
Choose a tag to compare

What's Changed

Enhancements by @ghostwheel42 in #1

  • new format tokens:
    %H : branch name or shortened hash prefixed with colon
    %s : number of staged files
    %S : number of stashed changes
    %U : upstream remote/branch
    %C : no output, enables group if repository is clean
    %l : no output, enables group if repository is local
    %e : no output, enables group if last group was not enabled

  • new color tokens:
    #- : reset color
    #> : leak color to next group

  • new ways to enable a group:
    %C : Enable group when clean
    %D : Enable group when not clean (or dirty)
    %O : Enable group when outdated
    %L : Enable group when latest (or up to date)
    %l : Enable group when there's no upstream (local repository)
    %e : Enable group when last group was not enabled

  • speed up gitprompt, by not rendering help on every call

  • fix crash when closing a group which was not opened

  • use LC_ALL=C to stabilize gitprompt in other locale environments

  • make tests not fail on newer git versions using "main" instead af "master" as default branch

Full Changelog: v0.2.1...v0.3.0