mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Merge pull request #181 from kballard/fish_git_switch
Remove __fish_git_prompt's switch bug workaround
This commit is contained in:
commit
9457c115be
1 changed files with 5 additions and 5 deletions
|
@ -237,14 +237,14 @@ function __fish_git_prompt --description "Prompt function for Git"
|
|||
if test $os -ne 0
|
||||
set b (switch "$__fish_git_prompt_describe_style"
|
||||
case contains
|
||||
git describe --contains HEAD; set os $status
|
||||
git describe --contains HEAD
|
||||
case branch
|
||||
git describe --contains --all HEAD; set os $status
|
||||
git describe --contains --all HEAD
|
||||
case describe
|
||||
git describe HEAD; set os $status
|
||||
git describe HEAD
|
||||
case default '*'
|
||||
git describe --tags --exact-match HEAD; set os $status
|
||||
end ^/dev/null)
|
||||
git describe --tags --exact-match HEAD
|
||||
end ^/dev/null; set os $status)
|
||||
if test $os -ne 0
|
||||
set b (cut -c1-7 $git_dir/HEAD ^/dev/null; set os $status)
|
||||
if test $os -ne 0
|
||||
|
|
Loading…
Reference in a new issue