Skip to contentSkip to conversation

diff-format.txt: Expand information about pathnames quoting in patch format

PATCH New Jakub Narebski 1 participant 2 messages Aug 11, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 diff-format.txt: Expand information about pathnames quoting in patch format

---
 Documentation/diff-format.txt |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Documentation/diff-format.txt +3 -0
index ed4ebcb..f980ecf 100644
@@ -146,6 +146,9 @@ the file that rename/copy produces, resp
 
 3.  TAB, LF, and backslash characters in pathnames are
     represented as `\t`, `\n`, and `\\`, respectively.
+    If there is need to quote pathname then the whole
+    pathname is put in double quotes, and quote characters
+    in pathname are represented as `\"`.
 
 
 combined diff format
Signature · 1 line
1.4.3.3
#1 lore raw

PATCH 1/1 diff-format.txt: Correct information about pathnames quoting in patch format

---
Discard previous version, please. This one should be correct.

 Documentation/diff-format.txt |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
Documentation/diff-format.txt +4 -2
index ed4ebcb..e4520e2 100644
@@ -144,8 +144,10 @@ the file that rename/copy produces, resp
        dissimilarity index <number>
        index <hash>..<hash> <mode>
 
-3.  TAB, LF, and backslash characters in pathnames are
-    represented as `\t`, `\n`, and `\\`, respectively.
+3.  TAB, LF, double quote and backslash characters in pathnames
+    are represented as `\t`, `\n`, `\"` and `\\`, respectively.
+    If there is need for such substitution then the whole
+    pathname is put in double quotes.
 
 
 combined diff format
Signature · 1 line
1.4.3.3