threads / patch / 43235

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

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

## tl;dr

2 messages between Oct 26, 2006 and Oct 26, 2006. Diffs are folded; open one to read it.

replies: 1people: 1as markdown or json

Jakub Narebski· Oct 26, 2006, 19:03 UTC · lore
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
 Documentation/diff-format.txt |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Show changes to Documentation/diff-format.txt +3 −0
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
Jakub Narebski· Oct 26, 2006, 20:21 UTC · re: Jakub Narebski · lore

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

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
Discard previous version, please. This one should be correct.
 Documentation/diff-format.txt |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
Show changes to Documentation/diff-format.txt +4 −2
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

← back to recent threads