 dea007fb4c
			
		
	
	dea007fb4c
	
	
	
		
			
			Change the option parsing logic in revision.c to accept separate forms like `-S foo' in addition to `-Sfoo'. The rest of git already accepted this form, but revision.c still used its own option parsing. Short options affected are -S<string>, -l<num> and -O<orderfile>, for which an empty string wouldn't make sense, hence -<option> <arg> isn't ambiguous. This patch does not handle --stat-name-width and --stat-width, which are special-cases where diff_long_opt do not apply. They are handled in a separate patch to ease review. Original patch by Matthieu Moy, plus refactoring by Jonathan Nieder. Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
		
			
				
	
	
		
			8 lines
		
	
	
		
			160 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			160 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| $ git log -S F master
 | |
| commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0
 | |
| Author: A U Thor <author@example.com>
 | |
| Date:   Mon Jun 26 00:02:00 2006 +0000
 | |
| 
 | |
|     Third
 | |
| $
 |