File: 02-svn-spaces.patch

package info (click to toggle)
diffstat 1.61-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,992 kB
  • ctags: 618
  • sloc: sh: 3,105; ansic: 2,514; makefile: 163
file content (16 lines) | stat: -rw-r--r-- 579 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Handle pathnames with spaces in svn diff format
Author: Stuart Prescott <stuart+debian@nanonanonano.net>

--- a/diffstat.c
+++ b/diffstat.c
@@ -1518,6 +1518,10 @@ do_file(FILE *fp, const char *default_na
 			       "*** %[^\t]\t(%[^)])\t(%[^)])",
 			       b_fname, b_temp1, b_temp2) == 3
 			&& !version_num(b_fname))
+		    || (sscanf(buffer,
+			       "*** %[^\t]\t(%[^)])\t(%[^)])",
+			       b_fname, b_temp1, b_temp2) == 3
+			&& !version_num(b_fname))
 		    || sscanf(buffer,
 			      "*** %[^\t ]%[\t ]%[^ ] %[^ ] %d %d:%d:%d %d",
 			      b_fname,