Matthew Rothenberg
23e99709da
integrate branch parsing into single system call
...
The `git status --porcelain` command can take an additional argument
`-b` which causes the porcelain output to also contain branch
information in a stable and supposedly nonchanging way.
This change adds that argument to the initial `git status` call, and
parses the branch/ahead/behind information from that. The end result is
the entire call to `git branch -v` can be removed, resulting in one less
subshell command and hopefully a more reliable target across future
versions of git.
2014-10-15 02:41:21 -04:00
aero-z
ee5c1e5aa0
Changing the output for git status when there is a rename and modify at the same time
2014-06-12 02:47:56 -04:00
Sebastian Blask
b7fa37e1f1
Let gs handle commits the branch is behind
...
Fixes #119
2013-10-30 17:39:23 +01:00
Alex Galonsky
c37073cbc6
Using git rev-parse --show-toplevel to find repo root
2013-08-18 05:00:42 +00:00
Nathan Broadbent
992b1866b2
Use type -p / -P to determine git binary
2012-11-13 12:45:01 +13:00
Nathan Broadbent
d6730b40c9
Use \033 instead of \e for color codes, which seems to be more widely supported.
2012-10-23 13:44:02 +13:00
Nathan Broadbent
98dc23a529
Explanation for ahead code
2012-08-13 01:33:37 +12:00
Nathan Broadbent
4543884aa6
If no changes, just display green no changes message and exit. This is
...
mainly to prevent shell script from detecting no output and assuming
that max changes limit was reached
2012-08-13 01:32:30 +12:00
Nathan Broadbent
398060a67a
Parse long git status for submodule summaries, if .gitmodules exists and any changed 'files' are submodules.
2011-12-23 12:46:29 +08:00
Nathan Broadbent
9b0852de2d
Handle 'typechange' modification, with special case for symlinks
2011-12-23 11:46:54 +08:00
Nathan Broadbent
cc53d9fecf
Fixed git_branch to handle (no branch)
2011-12-20 11:37:14 +08:00
Jacob Lukas
ea26846077
Add a couple comments
2011-11-09 20:14:42 -08:00
Jacob Lukas
5e507af747
Fix add/remove with spaces/special characters
2011-11-09 20:02:29 -08:00
Nathan Broadbent
3f37f8f53d
Made status command use grep instead of head & tail
2011-10-20 12:02:54 +08:00
Nathan Broadbent
0feae2a46e
Changed project name.
2011-10-18 00:19:16 +08:00
Nathan Broadbent
e634d0c4b5
Initial Commit - moved out of ubuntu_config.
2011-10-18 00:18:17 +08:00