summaryrefslogtreecommitdiff
path: root/plugins/git-prompt/gitstatus.py
AgeCommit message (Collapse)Author
2018-04-30Parse branch-name for fresh repo (#6302)Oliver Baumann
Inside a fresh git repo, i.e. immediately after a `git init`, usually no commit template exists yet. In this case, git renders a different status message than "Initial commit on". We should consider this message when attempting to parse out the branch name. Fixes #6301
2015-08-17Show tag name when detached status if possibleKentaro Wada
2015-08-16Clean up gitstatus.pyMarc Cornellà
2015-08-16Fix for initial or detached status branch infoKentaro Wada
2015-08-16Parse UTF-8 output from git statusMarc Cornellà
2015-08-16git-prompt: collect all git status information by one cmdKentaro Wada
This commit uses the `git status --porcelain -b` format to gather the number of ahead and behind commits related to the remote branch.
2015-08-16Cleanup the rest of gitstatus.pyMarc Cornellà
2015-08-16Pull in simplified version from @wkentaroMarc Cornellà
This version uses `git status --porcelain` instead of making multiple calls to `git status`.
2015-08-16Pull in latest version from olivierverdier/zsh-git-promptMarc Cornellà
2014-07-16Revert "specify python2 in shebang"ncanceill
"/usr/bin/python2" does not exist on Mac OSX (see #2382), so fuck people who have "python" symlinked to "python3" This reverts commit e5ed07e2b5740346d2a32b3a47204612d8808723
2014-06-04specify python2 in shebangncanceill
as suggested in #2382
2014-04-18Fix for Python3Paweł Tomak
In Python3 without universal_newlines set to True output from Popen was byte-encoded.
2014-02-21grab last item in list which is the branch instead of relying on position.Chris Jones
2014-02-21Much needed PEP8 love. Use spaces, not tabs.Chris Jones
2011-04-28add git-prompt plugin from olivierverdier/zsh-git-promptJustin Riley