mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-22 21:05:47 +08:00 
			
		
		
		
	Merge pull request #974 from janschulz/fix_gitbranch
Fix git branch name never shown as dirty
This commit is contained in:
		
							
								
								
									
										6
									
								
								vendor/clink.lua
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								vendor/clink.lua
									
									
									
									
										vendored
									
									
								
							| @@ -193,7 +193,11 @@ end | |||||||
|  -- @return {bool} |  -- @return {bool} | ||||||
| --- | --- | ||||||
| function get_git_status() | function get_git_status() | ||||||
|     return io.popen("git diff --quiet --ignore-submodules HEAD 2>nul") |     local file = io.popen("git diff --quiet --ignore-submodules HEAD 2>nul") | ||||||
|  |     -- This will get a table with some return stuff | ||||||
|  |     -- rc[3] will be the signal, 0 or 1 | ||||||
|  |     local rc = {file:close()} | ||||||
|  |     return rc[3] == 0 | ||||||
| end | end | ||||||
|  |  | ||||||
| function git_prompt_filter() | function git_prompt_filter() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user