Releases: ogr3/bash-git-prompt
Releases · ogr3/bash-git-prompt
username/repo support
- You can show an abbreviated
username/repo
in the prompt by settingGIT_PROMPT_WITH_USERNAME_AND_REPO=1
and setting the placeholder_USERNAME_REPO_
in yourGIT_PROMPT_PREFIX
. You can also add aGIT_PROMPT_USERNAME_REPO_SEPARATOR=" | "
so theusername/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 themeSingle_line_username_repo.bgptheme
for an example. - Allow empty
GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING
variable
Support for git 2.14
Git 2.14 Changes the output from git status on empty repos. This release addresses that.
Security fix
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
- 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
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
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
- New Theme
Minimal
- Fix for
gitstatus.sh
so that it works for Bash 3.2 as well
New features + bugfix
- Fixed utf-8 and python 3 in the Python version
- Fix for removing local copy of git lock file using
command rm
New features
- 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
- Added a new custom one line theme
- Bugfixes