Oliver Baumann
493c30954b
Parse branch-name for fresh repo ( #6302 )
...
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
8 years ago
Kentaro Wada
c4ba3065a1
Show tag name when detached status if possible
11 years ago
Marc Cornellà
3c698743fa
Clean up gitstatus.py
11 years ago
Kentaro Wada
45473c3a81
Fix for initial or detached status branch info
11 years ago
Marc Cornellà
30bed07e9c
Parse UTF-8 output from git status
11 years ago
Kentaro Wada
94007f7db2
git-prompt: collect all git status information by one cmd
...
This commit uses the `git status --porcelain -b` format to gather the
number of ahead and behind commits related to the remote branch.
11 years ago
Marc Cornellà
6ff53d173b
Cleanup of git-prompt plugin file
11 years ago
Marc Cornellà
1d133ff11f
Cleanup the rest of gitstatus.py
11 years ago
Marc Cornellà
5642014ff1
Pull in simplified version from @wkentaro
...
This version uses `git status --porcelain` instead of making
multiple calls to `git status`.
11 years ago
Marc Cornellà
6443626a6b
Pull in latest version from olivierverdier/zsh-git-prompt
11 years ago
Marc Cornellà
2193135ebc
Clean up appearance lib file and redundant `colors` calls in other files
11 years ago
ncanceill
5756ea0101
Revert "specify python2 in shebang"
...
"/usr/bin/python2" does not exist on Mac OSX (see #2382 ), so fuck people who have
"python" symlinked to "python3"
This reverts commit e5ed07e2b5
12 years ago
ncanceill
e5ed07e2b5
specify python2 in shebang
...
as suggested in #2382
12 years ago
Paweł Tomak
cee52283d8
Fix for Python3
...
In Python3 without universal_newlines set to True
output from Popen was byte-encoded.
12 years ago
Chris Jones
c397000b3b
grab last item in list which is the branch instead of relying on position.
12 years ago
Chris Jones
7a546362d3
Much needed PEP8 love. Use spaces, not tabs.
12 years ago
Justin Riley
e5f77b8f04
add git-prompt plugin from olivierverdier/zsh-git-prompt
15 years ago