mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
made the lib/git.zsh file check the version of git that is being used and ajust the arguments for the git status call accordingly
This commit is contained in:
parent
468c5a20e3
commit
ef625adb07
1 changed files with 5 additions and 1 deletions
|
|
@ -17,7 +17,11 @@ parse_git_dirty() {
|
|||
# echos false otherwise
|
||||
is_legacy_git() {
|
||||
checkit() {
|
||||
if [ $1 -gt 1 -o $2 -gt 7 -o $3 -ge 2 ]; then
|
||||
if [ $1 -gt 1 ]; then
|
||||
echo false
|
||||
elif [ $1 -eq 1 -a $2 -gt 7 ]; then
|
||||
echo false
|
||||
elif [ $1 -eq 1 -a $2 -eq 7 -a $3 -ge 2 ]; then
|
||||
echo false
|
||||
else
|
||||
echo true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue