mirror of
				https://github.com/oh-my-fish/theme-bobthefish.git
				synced 2025-06-13 13:03:54 +00:00 
			
		
		
		
	Merge pull request #95 from JingkaiTang/master
Redirect git warnings in __bobthefish_prompt_git to /dev/null
This commit is contained in:
		
						commit
						6658ea3db0
					
				| @ -477,15 +477,15 @@ function __bobthefish_prompt_hg -S -a current_dir -d 'Display the actual hg stat | |||||||
| end | end | ||||||
| 
 | 
 | ||||||
| function __bobthefish_prompt_git -S -a current_dir -d 'Display the actual git state' | function __bobthefish_prompt_git -S -a current_dir -d 'Display the actual git state' | ||||||
|   set -l dirty   (command git diff --no-ext-diff --quiet --exit-code; or echo -n "$__bobthefish_git_dirty_glyph") |   set -l dirty   (command git diff --no-ext-diff --quiet --exit-code ^/dev/null; or echo -n "$__bobthefish_git_dirty_glyph") | ||||||
|   set -l staged  (command git diff --cached --no-ext-diff --quiet --exit-code; or echo -n "$__bobthefish_git_staged_glyph") |   set -l staged  (command git diff --cached --no-ext-diff --quiet --exit-code ^/dev/null; or echo -n "$__bobthefish_git_staged_glyph") | ||||||
|   set -l stashed (command git rev-parse --verify --quiet refs/stash >/dev/null; and echo -n "$__bobthefish_git_stashed_glyph") |   set -l stashed (command git rev-parse --verify --quiet refs/stash >/dev/null; and echo -n "$__bobthefish_git_stashed_glyph") | ||||||
|   set -l ahead   (__bobthefish_git_ahead) |   set -l ahead   (__bobthefish_git_ahead) | ||||||
| 
 | 
 | ||||||
|   set -l new '' |   set -l new '' | ||||||
|   set -l show_untracked (command git config --bool bash.showUntrackedFiles) |   set -l show_untracked (command git config --bool bash.showUntrackedFiles ^/dev/null) | ||||||
|   if [ "$theme_display_git_untracked" != 'no' -a "$show_untracked" != 'false' ] |   if [ "$theme_display_git_untracked" != 'no' -a "$show_untracked" != 'false' ] | ||||||
|     set new (command git ls-files --other --exclude-standard --directory --no-empty-directory) |     set new (command git ls-files --other --exclude-standard --directory --no-empty-directory ^/dev/null) | ||||||
|     if [ "$new" ] |     if [ "$new" ] | ||||||
|       set new "$__bobthefish_git_untracked_glyph" |       set new "$__bobthefish_git_untracked_glyph" | ||||||
|     end |     end | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user