Commit 3b517351d06d37d04d1ace80be04c84d225fa793

Patrick Steinhardt 2019-06-07T10:13:34

attr_file: remove invalid TODO comment In our attributes pattern parsing code, we have a comment that states we might have to convert '\' characters to '/' to have proper POSIX paths. But in fact, '\' characters are valid inside the string and act as escape mechanism for various characters, which is why we never want to convert those to POSIX directory separators. Furthermore, gitignore patterns are specified to only treat '/' as directory separators. Remove the comment to avoid future confusion.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/attr_file.c b/src/attr_file.c
index 08b6c3f..f01a743 100644
--- a/src/attr_file.c
+++ b/src/attr_file.c
@@ -743,7 +743,6 @@ int git_attr_fnmatch__parse(
 	} else {
 		/* strip '\' that might have been used for internal whitespace */
 		spec->length = unescape_spaces(spec->pattern);
-		/* TODO: convert remaining '\' into '/' for POSIX ??? */
 	}
 
 	return 0;