Skip to content

Releases: ogr3/bash-git-prompt

username/repo support

13 Nov 11:20
Compare
Choose a tag to compare
  • You can show an abbreviated username/repo in the prompt by setting GIT_PROMPT_WITH_USERNAME_AND_REPO=1 and setting the placeholder _USERNAME_REPO_ in your GIT_PROMPT_PREFIX. You can also add a GIT_PROMPT_USERNAME_REPO_SEPARATOR=" | " so the username/repo is nicely separated if there is a remote and if there is no remote, neither the username/repo part nor the separator will be shown. See the theme Single_line_username_repo.bgptheme for an example.
  • Allow empty GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING variable

Support for git 2.14

15 Aug 06:33
Compare
Choose a tag to compare

Git 2.14 Changes the output from git status on empty repos. This release addresses that.

Security fix

04 May 10:04
Compare
Choose a tag to compare

Fixes magicmonty#324 from upstream - .bash-git-rc could contain anything and is sourced by the prompt if it exists in the repo. Now only allows some explicit variables in the file.

New features

18 Apr 10:35
Compare
Choose a tag to compare
  • Bugfix: magicmonty#319 upstream. If a branch was named ahead or behind, the logic for determining if we were ahead/behind upstream got confused.
  • Feature: Possible to optionally set a parameter telling the max length of PWD (defaults to 1/3 of available width)
  • Updated README.md

Important security fix

26 Mar 19:00
Compare
Choose a tag to compare

Fixes an issue where crafted branch names could execute bash commands when moving into a git clone with cd.

See merged upstream PR: magicmonty#313

Configurable file count showing

19 Aug 06:47
Compare
Choose a tag to compare

A new feature added - makes it possible to disable the file count numbers for staged, conflicting, changed, untracked and stashed files.

Set

GIT_PROMPT_SHOW_CHANGED_FILES_COUNT=0

Before loading the prompt to enable the feature

New Theme + bugfix

15 Aug 07:01
Compare
Choose a tag to compare
  • New Theme Minimal
  • Fix for gitstatus.sh so that it works for Bash 3.2 as well

New features + bugfix

21 Jul 16:47
Compare
Choose a tag to compare
  • Fixed utf-8 and python 3 in the Python version
  • Fix for removing local copy of git lock file using command rm

New features

21 Jul 16:46
Compare
Choose a tag to compare
  • Use local copy of git lock file so that gitprompt won't disturb git operations on the same repo done from another shell
  • Improved granularity of file counting in gitstatus - should follow the table in the manpage now. E.g. a file can be both staged and changed.
  • A new function allowing toggling of the git prompt (git_prompt_toggle)

New Theme - Evermeet

08 Jun 19:15
Compare
Choose a tag to compare
  • Added a new custom one line theme
  • Bugfixes