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

Subsystems: documentation, the rest

STALE3662d

2 messages, 1 author, 2016-08-11 · open the first message on its own page

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

From: Jakub Narebski <hidden>
Date: 2016-08-11 19:22:22

Signed-off-by: Jakub Narebski <redacted>
---
 Documentation/diff-format.txt |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Documentation/diff-format.txt b/Documentation/diff-format.txt
index ed4ebcb..f980ecf 100644
--- a/Documentation/diff-format.txt
+++ b/Documentation/diff-format.txt
@@ -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
-- 
1.4.3.3

[PATCH (amend)] diff-format.txt: Correct information about pathnames quoting in patch format

From: Jakub Narebski <hidden>
Date: 2016-08-11 20:19:05

Signed-off-by: Jakub Narebski <redacted>
---
Discard previous version, please. This one should be correct.

 Documentation/diff-format.txt |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Documentation/diff-format.txt b/Documentation/diff-format.txt
index ed4ebcb..e4520e2 100644
--- a/Documentation/diff-format.txt
+++ b/Documentation/diff-format.txt
@@ -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
-- 
1.4.3.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help