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

2 messages from 2006-10-26 to 2006-10-26. Participants: Jakub Narebski.
Thread: https://gitlist.dev/t/43235

## Jakub Narebski, 2006-10-26 19:03

Subject: [PATCH] diff-format.txt: Expand information about pathnames quoting in patch format
Message-ID: <200610262103.31058.jnareb@gmail.com>
URL: https://gitlist.dev/e/200610262103.31058.jnareb%40gmail.com

```
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
 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

```

## Jakub Narebski, 2006-10-26 20:21

Subject: [PATCH (amend)] diff-format.txt: Correct information about pathnames quoting in patch format
Message-ID: <200610262221.03266.jnareb@gmail.com>
URL: https://gitlist.dev/e/200610262221.03266.jnareb%40gmail.com
In-Reply-To: <200610262103.31058.jnareb@gmail.com>

```
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(-)

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

```
