git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] doc: fix 'git status --help' character quoting
@ 2014-10-19 14:17 Philip Oakley
  2014-10-19 22:26 ` Junio C Hamano
  0 siblings, 1 reply; 9+ messages in thread
From: Philip Oakley @ 2014-10-19 14:17 UTC (permalink / raw)
  To: GitList; +Cc: Junio C Hamano

Correct backtick quoting for some of the modification states to give
consistent web rendering.

While at it, use 00 for ASCII NUL to avoid any confusion with the letter O.

Signed-off-by: Philip Oakley <philipoakley@iee.org>
---

Noticed when reviewing a stackoverflow problem where the OP actually
desired to just list those files with merge indicators present.
---
 Documentation/git-status.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Documentation/git-status.txt b/Documentation/git-status.txt
index def635f..1c01d3ac 100644
--- a/Documentation/git-status.txt
+++ b/Documentation/git-status.txt
@@ -116,7 +116,7 @@ In the short-format, the status of each path is shown as
 
 where `PATH1` is the path in the `HEAD`, and the " `-> PATH2`" part is
 shown only when `PATH1` corresponds to a different path in the
-index/worktree (i.e. the file is renamed). The 'XY' is a two-letter
+index/worktree (i.e. the file is renamed). The `XY` is a two-letter
 status code.
 
 The fields (including the `->`) are separated from each other by a
@@ -125,7 +125,7 @@ characters, that field will be quoted in the manner of a C string
 literal: surrounded by ASCII double quote (34) characters, and with
 interior special characters backslash-escaped.
 
-For paths with merge conflicts, `X` and 'Y' show the modification
+For paths with merge conflicts, `X` and `Y` show the modification
 states of each side of the merge. For paths that do not have merge
 conflicts, `X` shows the status of the index, and `Y` shows the status
 of the work tree.  For untracked paths, `XY` are `??`.  Other status
@@ -189,7 +189,7 @@ There is also an alternate -z format recommended for machine parsing. In
 that format, the status field is the same, but some other things
 change.  First, the '\->' is omitted from rename entries and the field
 order is reversed (e.g 'from \-> to' becomes 'to from'). Second, a NUL
-(ASCII 0) follows each filename, replacing space as a field separator
+(ASCII 00) follows each filename, replacing space as a field separator
 and the terminating newline (but a space still separates the status
 field from the first filename).  Third, filenames containing special
 characters are not specially formatted; no quoting or
-- 
1.9.4.msysgit.0

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-10-21 22:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-19 14:17 [PATCH] doc: fix 'git status --help' character quoting Philip Oakley
2014-10-19 22:26 ` Junio C Hamano
2014-10-20 10:46   ` Philip Oakley
2014-10-20 11:31     ` Philip Oakley
2014-10-20 17:14     ` Junio C Hamano
2014-10-20 19:28       ` Philip Oakley
2014-10-20 19:54         ` Junio C Hamano
2014-10-20 20:02           ` Junio C Hamano
2014-10-21 22:08             ` Philip Oakley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).