mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 14:44:05 +00:00 
			
		
		
		
	#N/A: Replace only exact words when expanding a Git alias
This commit is contained in:
		
				
					committed by
					
						 Pablo Aguiar
						Pablo Aguiar
					
				
			
			
				
	
			
			
			
						parent
						
							a2a6cbdc70
						
					
				
				
					commit
					eb05b28c5b
				
			| @@ -6,7 +6,11 @@ from thefuck.types import Command | ||||
| @pytest.mark.parametrize('called, command, output', [ | ||||
|     ('git co', 'git checkout', "19:22:36.299340 git.c:282   trace: alias expansion: co => 'checkout'"), | ||||
|     ('git com file', 'git commit --verbose file', | ||||
|      "19:23:25.470911 git.c:282   trace: alias expansion: com => 'commit' '--verbose'")]) | ||||
|      "19:23:25.470911 git.c:282   trace: alias expansion: com => 'commit' '--verbose'"), | ||||
|     ('git com -m "Initial commit"', 'git commit -m "Initial commit"', | ||||
|      "19:22:36.299340 git.c:282   trace: alias expansion: com => 'commit'"), | ||||
|     ('git br -d some_branch', 'git branch -d some_branch', | ||||
|      "19:22:36.299340 git.c:282   trace: alias expansion: br => 'branch'")]) | ||||
| def test_git_support(called, command, output): | ||||
|     @git_support | ||||
|     def fn(command): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user