 d3621de789
			
		
	
	d3621de789
	
	
	
		
			
			Remove the tests that checked against a fixed result and replace them with more focused checks of desired properties of the created diffs. That way we get more detailed and meaningful diagnostics. Store test file contents in files in a subdirectory in order to avoid cluttering the test script with them. Use tagged commits to store the changes to test diff -W against instead of using changes to the worktree. Use the worktree instead to try and apply the generated patch in order to validate it. Document unwanted features: trailing empty lines, too much context for appended functions, insufficient context at the end with -U0. Helped-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
		
			
				
	
	
		
			21 lines
		
	
	
		
			407 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			407 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <Begin.h>
 | |
| #include <unistd.h>
 | |
| #include <stdio.h>
 | |
| #include <sys/stat.h>
 | |
| #include <fcntl.h>
 | |
| #include <stddef.h>
 | |
| #include <stdlib.h>
 | |
| #include <stdarg.h>
 | |
| /* delete me from includes */
 | |
| #include <string.h>
 | |
| #include <sys/types.h>
 | |
| #include <dirent.h>
 | |
| #include <sys/time.h>
 | |
| #include <time.h>
 | |
| #include <signal.h>
 | |
| #include <assert.h>
 | |
| #include <regex.h>
 | |
| #include <utime.h>
 | |
| #include <syslog.h>
 | |
| #include <End.h>
 |