mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 18:10:56 +01:00 
			
		
		
		
	41475: _git: Complete files after 'reset' when there are no commits, when the 'verbose' style is set.
This commit is contained in:
		
							parent
							
								
									27efa0efd4
								
							
						
					
					
						commit
						17a6eb655d
					
				
					 2 changed files with 12 additions and 0 deletions
				
			
		|  | @ -1462,6 +1462,12 @@ _git-reset () { | |||
|   case $state in | ||||
|     (file) | ||||
|       local tree=HEAD | ||||
|       if zstyle -t :completion:${curcontext}: verbose; then | ||||
|         if ! _call_program headed git rev-parse --verify HEAD 2>/dev/null; then | ||||
|           # well-known sha1 of the empty tree | ||||
|           tree=4b825dc642cb6eb9a060e54bf8d69288fbee4904 | ||||
|         fi | ||||
|       fi | ||||
|       if [[ -n $line[1] ]] && __git_is_treeish $line[1]; then | ||||
|         tree=$line[1] | ||||
|       fi | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue