git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH 0/5] fixing a few Asciidoc/tor differences
@ 2019-03-06  6:30 Martin Ågren
  2019-03-06  6:30 ` [PATCH 1/5] config/diff.txt: drop spurious backtick Martin Ågren
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Martin Ågren @ 2019-03-06  6:30 UTC (permalink / raw)
  To: git

I've got a W-I-P series to teach our doc-diff tool to diff between
AsciiDoc and Asciidoctor. It looks promising, and here are a few fixes
that fell out from my first round of testing things.

The W-I-P doc-diff is able to find three types of problems, as shown by
these patches. One is where Asciidoctor trips on something, but Asciidoc
doesn't. There's the other way around. And sometimes they both stumble,
but differently.

Based on maint.

Martin Ågren (5):
  config/diff.txt: drop spurious backtick
  config/fsck.txt: avoid starting line with dash
  git.txt: remove empty line before list continuation
  git-svn.txt: drop escaping '\' that ends up being rendered
  Documentation: turn middle-of-line tabs into spaces

 Documentation/config/diff.txt       |  4 ++--
 Documentation/config/fsck.txt       |  6 +++---
 Documentation/config/gc.txt         |  2 +-
 Documentation/config/gpg.txt        |  2 +-
 Documentation/git-config.txt        |  2 +-
 Documentation/git-grep.txt          |  2 +-
 Documentation/git-http-backend.txt  |  2 +-
 Documentation/git-ls-remote.txt     |  2 +-
 Documentation/git-notes.txt         |  2 +-
 Documentation/git-svn.txt           | 10 +++++-----
 Documentation/git.txt               |  1 -
 Documentation/gitattributes.txt     |  2 +-
 Documentation/gitremote-helpers.txt |  2 +-
 Documentation/gitweb.conf.txt       |  2 +-
 Documentation/rev-list-options.txt  |  2 +-
 15 files changed, 21 insertions(+), 22 deletions(-)

-- 
2.21.0


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

* [PATCH 1/5] config/diff.txt: drop spurious backtick
  2019-03-06  6:30 [PATCH 0/5] fixing a few Asciidoc/tor differences Martin Ågren
@ 2019-03-06  6:30 ` Martin Ågren
  2019-03-06  6:30 ` [PATCH 2/5] config/fsck.txt: avoid starting line with dash Martin Ågren
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Martin Ågren @ 2019-03-06  6:30 UTC (permalink / raw)
  To: git

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
---
 Documentation/config/diff.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/config/diff.txt b/Documentation/config/diff.txt
index e48bb987d7..7a1bae116a 100644
--- a/Documentation/config/diff.txt
+++ b/Documentation/config/diff.txt
@@ -10,7 +10,7 @@ diff.autoRefreshIndex::
 
 diff.dirstat::
 	A comma separated list of `--dirstat` parameters specifying the
-	default behavior of the `--dirstat` option to linkgit:git-diff[1]`
+	default behavior of the `--dirstat` option to linkgit:git-diff[1]
 	and friends. The defaults can be overridden on the command line
 	(using `--dirstat=<param1,param2,...>`). The fallback defaults
 	(when not changed by `diff.dirstat`) are `changes,noncumulative,3`.
-- 
2.21.0


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

* [PATCH 2/5] config/fsck.txt: avoid starting line with dash
  2019-03-06  6:30 [PATCH 0/5] fixing a few Asciidoc/tor differences Martin Ågren
  2019-03-06  6:30 ` [PATCH 1/5] config/diff.txt: drop spurious backtick Martin Ågren
@ 2019-03-06  6:30 ` Martin Ågren
  2019-03-06  6:30 ` [PATCH 3/5] git.txt: remove empty line before list continuation Martin Ågren
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Martin Ågren @ 2019-03-06  6:30 UTC (permalink / raw)
  To: git

This dash at the start of the line causes Asciidoctor to trip on the
list continuations that follow and to render the pluses literally.
Rewrap a little to put the dash elsewhere.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
---
 Documentation/config/fsck.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Documentation/config/fsck.txt b/Documentation/config/fsck.txt
index 879c5a29c4..450e8c38e3 100644
--- a/Documentation/config/fsck.txt
+++ b/Documentation/config/fsck.txt
@@ -23,9 +23,9 @@ When `fsck.<msg-id>` is set, errors can be switched to warnings and
 vice versa by configuring the `fsck.<msg-id>` setting where the
 `<msg-id>` is the fsck message ID and the value is one of `error`,
 `warn` or `ignore`. For convenience, fsck prefixes the error/warning
-with the message ID, e.g. "missingEmail: invalid author/committer line
-- missing email" means that setting `fsck.missingEmail = ignore` will
-hide that issue.
+with the message ID, e.g. "missingEmail: invalid author/committer
+line - missing email" means that setting `fsck.missingEmail = ignore`
+will hide that issue.
 +
 In general, it is better to enumerate existing objects with problems
 with `fsck.skipList`, instead of listing the kind of breakages these
-- 
2.21.0


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

* [PATCH 3/5] git.txt: remove empty line before list continuation
  2019-03-06  6:30 [PATCH 0/5] fixing a few Asciidoc/tor differences Martin Ågren
  2019-03-06  6:30 ` [PATCH 1/5] config/diff.txt: drop spurious backtick Martin Ågren
  2019-03-06  6:30 ` [PATCH 2/5] config/fsck.txt: avoid starting line with dash Martin Ågren
@ 2019-03-06  6:30 ` Martin Ågren
  2019-03-06  6:30 ` [PATCH 4/5] git-svn.txt: drop escaping '\' that ends up being rendered Martin Ågren
  2019-03-06  6:30 ` [PATCH 5/5] Documentation: turn middle-of-line tabs into spaces Martin Ågren
  4 siblings, 0 replies; 7+ messages in thread
From: Martin Ågren @ 2019-03-06  6:30 UTC (permalink / raw)
  To: git

This patch is a no-op for Asciidoctor, but makes AsciiDoc render this as
intended.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
---
 Documentation/git.txt | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Documentation/git.txt b/Documentation/git.txt
index 00156d64aa..6d1f2fd9ae 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -536,7 +536,6 @@ other
 	The command-line parameters passed to the configured command are
 	determined by the ssh variant.  See `ssh.variant` option in
 	linkgit:git-config[1] for details.
-
 +
 `$GIT_SSH_COMMAND` takes precedence over `$GIT_SSH`, and is interpreted
 by the shell, which allows additional arguments to be included.
-- 
2.21.0


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

* [PATCH 4/5] git-svn.txt: drop escaping '\' that ends up being rendered
  2019-03-06  6:30 [PATCH 0/5] fixing a few Asciidoc/tor differences Martin Ågren
                   ` (2 preceding siblings ...)
  2019-03-06  6:30 ` [PATCH 3/5] git.txt: remove empty line before list continuation Martin Ågren
@ 2019-03-06  6:30 ` Martin Ågren
  2019-03-06  6:30 ` [PATCH 5/5] Documentation: turn middle-of-line tabs into spaces Martin Ågren
  4 siblings, 0 replies; 7+ messages in thread
From: Martin Ågren @ 2019-03-06  6:30 UTC (permalink / raw)
  To: git

Escaping two *'s as "\*\*" apparently makes Asciidoctor render the
second backslash literally, so we end up with "*\*". So let's not escape
that second asterisk. The result is now "**" as intended, both in
AsciiDoc and Asciidoctor.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
---
 Documentation/git-svn.txt | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index b99029520d..223788fa3e 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -126,7 +126,7 @@ your Perl's Getopt::Long is < v2.37).
 	command-line argument.
 +
 This automatically updates the rev_map if needed (see
-'$GIT_DIR/svn/\*\*/.rev_map.*' in the FILES section below for details).
+'$GIT_DIR/svn/\**/.rev_map.*' in the FILES section below for details).
 
 --localtime;;
 	Store Git commit times in the local time zone instead of UTC.  This
@@ -239,7 +239,7 @@ Like 'git rebase'; this requires that the working tree be clean
 and have no uncommitted changes.
 +
 This automatically updates the rev_map if needed (see
-'$GIT_DIR/svn/\*\*/.rev_map.*' in the FILES section below for details).
+'$GIT_DIR/svn/\**/.rev_map.*' in the FILES section below for details).
 
 -l;;
 --local;;
@@ -524,7 +524,7 @@ This will set the property 'svn:keywords' to 'FreeBSD=%H' for the file
 	way to repair the repo is to use 'reset'.
 +
 Only the rev_map and refs/remotes/git-svn are changed (see
-'$GIT_DIR/svn/\*\*/.rev_map.*' in the FILES section below for details).
+'$GIT_DIR/svn/\**/.rev_map.*' in the FILES section below for details).
 Follow 'reset' with a 'fetch' and then 'git reset' or 'git rebase' to
 move local branches onto the new tree.
 
@@ -760,7 +760,7 @@ svn-remote.<name>.noMetadata::
 +
 This option can only be used for one-shot imports as 'git svn'
 will not be able to fetch again without metadata. Additionally,
-if you lose your '$GIT_DIR/svn/\*\*/.rev_map.*' files, 'git svn' will not
+if you lose your '$GIT_DIR/svn/\**/.rev_map.*' files, 'git svn' will not
 be able to rebuild them.
 +
 The 'git svn log' command will not work on repositories using
@@ -1154,7 +1154,7 @@ fetching, then $GIT_DIR/svn/.metadata must be manually edited to remove
 
 FILES
 -----
-$GIT_DIR/svn/\*\*/.rev_map.*::
+$GIT_DIR/svn/\**/.rev_map.*::
 	Mapping between Subversion revision numbers and Git commit
 	names.  In a repository where the noMetadata option is not set,
 	this can be rebuilt from the git-svn-id: lines that are at the
-- 
2.21.0


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

* [PATCH 5/5] Documentation: turn middle-of-line tabs into spaces
  2019-03-06  6:30 [PATCH 0/5] fixing a few Asciidoc/tor differences Martin Ågren
                   ` (3 preceding siblings ...)
  2019-03-06  6:30 ` [PATCH 4/5] git-svn.txt: drop escaping '\' that ends up being rendered Martin Ågren
@ 2019-03-06  6:30 ` Martin Ågren
  2019-03-07  0:29   ` Junio C Hamano
  4 siblings, 1 reply; 7+ messages in thread
From: Martin Ågren @ 2019-03-06  6:30 UTC (permalink / raw)
  To: git

These tabs happen to appear in columns where they don't stand out too
much, so the diff here is non-obvious. Some of these are rendered
differently by AsciiDoc and Asciidoctor (although the difference might
be invisible!), which is how I found a few of them. The remainder were
found using `git grep "[a-zA-Z.,)]$TAB[a-zA-Z]"`.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
---
 Documentation/config/diff.txt       | 2 +-
 Documentation/config/gc.txt         | 2 +-
 Documentation/config/gpg.txt        | 2 +-
 Documentation/git-config.txt        | 2 +-
 Documentation/git-grep.txt          | 2 +-
 Documentation/git-http-backend.txt  | 2 +-
 Documentation/git-ls-remote.txt     | 2 +-
 Documentation/git-notes.txt         | 2 +-
 Documentation/gitattributes.txt     | 2 +-
 Documentation/gitremote-helpers.txt | 2 +-
 Documentation/gitweb.conf.txt       | 2 +-
 Documentation/rev-list-options.txt  | 2 +-
 12 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/Documentation/config/diff.txt b/Documentation/config/diff.txt
index 7a1bae116a..2c4c9ba27a 100644
--- a/Documentation/config/diff.txt
+++ b/Documentation/config/diff.txt
@@ -73,7 +73,7 @@ diff.external::
 	environment variable.  The command is called with parameters
 	as described under "git Diffs" in linkgit:git[1].  Note: if
 	you want to use an external diff program only on a subset of
-	your files, you	might want to use linkgit:gitattributes[5] instead.
+	your files, you might want to use linkgit:gitattributes[5] instead.
 
 diff.ignoreSubmodules::
 	Sets the default value of --ignore-submodules. Note that this
diff --git a/Documentation/config/gc.txt b/Documentation/config/gc.txt
index c6fbb8a96f..73c08b0c00 100644
--- a/Documentation/config/gc.txt
+++ b/Documentation/config/gc.txt
@@ -19,7 +19,7 @@ gc.autoPackLimit::
 	When there are more than this many packs that are not
 	marked with `*.keep` file in the repository, `git gc
 	--auto` consolidates them into one larger pack.  The
-	default	value is 50.  Setting this to 0 disables it.
+	default value is 50.  Setting this to 0 disables it.
 
 gc.autoDetach::
 	Make `git gc --auto` return immediately and run in background
diff --git a/Documentation/config/gpg.txt b/Documentation/config/gpg.txt
index 590fe0d4ba..f999f8ea49 100644
--- a/Documentation/config/gpg.txt
+++ b/Documentation/config/gpg.txt
@@ -16,5 +16,5 @@ gpg.format::
 gpg.<format>.program::
 	Use this to customize the program used for the signing format you
 	chose. (see `gpg.program` and `gpg.format`) `gpg.program` can still
-	be used as a legacy synonym for	`gpg.openpgp.program`. The default
+	be used as a legacy synonym for `gpg.openpgp.program`. The default
 	value for `gpg.x509.program` is "gpgsm".
diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt
index 1bfe9f56a7..7d857f34c6 100644
--- a/Documentation/git-config.txt
+++ b/Documentation/git-config.txt
@@ -126,7 +126,7 @@ See also <<FILES>>.
 
 --local::
 	For writing options: write to the repository `.git/config` file.
-	This is	the default behavior.
+	This is the default behavior.
 +
 For reading options: read only from the repository `.git/config` rather than
 from all available files.
diff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt
index 84fe236a8e..2d27969057 100644
--- a/Documentation/git-grep.txt
+++ b/Documentation/git-grep.txt
@@ -88,7 +88,7 @@ OPTIONS
 	mechanism. Only useful with `--untracked`.
 
 --exclude-standard::
-	Do not pay attention to ignored files specified via the	`.gitignore`
+	Do not pay attention to ignored files specified via the `.gitignore`
 	mechanism.  Only useful when searching files in the current directory
 	with `--no-index`.
 
diff --git a/Documentation/git-http-backend.txt b/Documentation/git-http-backend.txt
index bb0db195ce..558966aa83 100644
--- a/Documentation/git-http-backend.txt
+++ b/Documentation/git-http-backend.txt
@@ -162,7 +162,7 @@ ScriptAliasMatch ^/git/[^/]*(.*) /usr/libexec/git-core/git-http-backend/storage.
 
 Accelerated static Apache 2.x::
 	Similar to the above, but Apache can be used to return static
-	files that are stored on disk.	On many systems this may
+	files that are stored on disk.  On many systems this may
 	be more efficient as Apache can ask the kernel to copy the
 	file contents from the file system directly to the network:
 +
diff --git a/Documentation/git-ls-remote.txt b/Documentation/git-ls-remote.txt
index b9fd3770a6..0b057cbb10 100644
--- a/Documentation/git-ls-remote.txt
+++ b/Documentation/git-ls-remote.txt
@@ -31,7 +31,7 @@ OPTIONS
 	displayed.
 
 --refs::
-	Do not show peeled tags or pseudorefs like HEAD	in the output.
+	Do not show peeled tags or pseudorefs like `HEAD` in the output.
 
 -q::
 --quiet::
diff --git a/Documentation/git-notes.txt b/Documentation/git-notes.txt
index df2b64dbb6..f56a5a9197 100644
--- a/Documentation/git-notes.txt
+++ b/Documentation/git-notes.txt
@@ -146,7 +146,7 @@ OPTIONS
 
 -C <object>::
 --reuse-message=<object>::
-	Take the given blob object (for	example, another note) as the
+	Take the given blob object (for example, another note) as the
 	note message. (Use `git notes copy <object>` instead to
 	copy notes between objects.)
 
diff --git a/Documentation/gitattributes.txt b/Documentation/gitattributes.txt
index b8392fc330..c2c10eef7c 100644
--- a/Documentation/gitattributes.txt
+++ b/Documentation/gitattributes.txt
@@ -18,7 +18,7 @@ A `gitattributes` file is a simple text file that gives
 
 Each line in `gitattributes` file is of form:
 
-	pattern	attr1 attr2 ...
+	pattern attr1 attr2 ...
 
 That is, a pattern followed by an attributes list,
 separated by whitespaces. Leading and trailing whitespaces are
diff --git a/Documentation/gitremote-helpers.txt b/Documentation/gitremote-helpers.txt
index 9d1459aac6..4f2905dc5d 100644
--- a/Documentation/gitremote-helpers.txt
+++ b/Documentation/gitremote-helpers.txt
@@ -468,7 +468,7 @@ set by Git if the remote helper has the 'option' capability.
 
 'option dry-run' {'true'|'false'}:
 	If true, pretend the operation completed successfully,
-	but don't actually change any repository data.	For most
+	but don't actually change any repository data.  For most
 	helpers this only applies to the 'push', if supported.
 
 'option servpath <c-style-quoted-path>'::
diff --git a/Documentation/gitweb.conf.txt b/Documentation/gitweb.conf.txt
index c0a326e388..57e50b6911 100644
--- a/Documentation/gitweb.conf.txt
+++ b/Documentation/gitweb.conf.txt
@@ -536,7 +536,7 @@ $omit_owner::
 
 $per_request_config::
 	If this is set to code reference, it will be run once for each request.
-	You can	set parts of configuration that change per session this way.
+	You can set parts of configuration that change per session this way.
 	For example, one might use the following code in a gitweb configuration
 	file
 +
diff --git a/Documentation/rev-list-options.txt b/Documentation/rev-list-options.txt
index bab5f50b17..918749b890 100644
--- a/Documentation/rev-list-options.txt
+++ b/Documentation/rev-list-options.txt
@@ -742,7 +742,7 @@ is supported, which omits all blobs and trees.
 
 --filter-print-omitted::
 	Only useful with `--filter=`; prints a list of the objects omitted
-	by the filter.	Object IDs are prefixed with a ``~'' character.
+	by the filter.  Object IDs are prefixed with a ``~'' character.
 
 --missing=<missing-action>::
 	A debug option to help with future "partial clone" development.
-- 
2.21.0


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

* Re: [PATCH 5/5] Documentation: turn middle-of-line tabs into spaces
  2019-03-06  6:30 ` [PATCH 5/5] Documentation: turn middle-of-line tabs into spaces Martin Ågren
@ 2019-03-07  0:29   ` Junio C Hamano
  0 siblings, 0 replies; 7+ messages in thread
From: Junio C Hamano @ 2019-03-07  0:29 UTC (permalink / raw)
  To: Martin Ågren; +Cc: git

Martin Ågren <martin.agren@gmail.com> writes:

> These tabs happen to appear in columns where they don't stand out too
> much, so the diff here is non-obvious. Some of these are rendered
> differently by AsciiDoc and Asciidoctor (although the difference might
> be invisible!), which is how I found a few of them. The remainder were
> found using `git grep "[a-zA-Z.,)]$TAB[a-zA-Z]"`.

Thanks.  This was a fun-to-read patch.

> diff --git a/Documentation/git-ls-remote.txt b/Documentation/git-ls-remote.txt
> index b9fd3770a6..0b057cbb10 100644
> --- a/Documentation/git-ls-remote.txt
> +++ b/Documentation/git-ls-remote.txt
> @@ -31,7 +31,7 @@ OPTIONS
>  	displayed.
>  
>  --refs::
> -	Do not show peeled tags or pseudorefs like HEAD	in the output.
> +	Do not show peeled tags or pseudorefs like `HEAD` in the output.

The quoting fix here is also good.

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

end of thread, other threads:[~2019-03-07  0:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-06  6:30 [PATCH 0/5] fixing a few Asciidoc/tor differences Martin Ågren
2019-03-06  6:30 ` [PATCH 1/5] config/diff.txt: drop spurious backtick Martin Ågren
2019-03-06  6:30 ` [PATCH 2/5] config/fsck.txt: avoid starting line with dash Martin Ågren
2019-03-06  6:30 ` [PATCH 3/5] git.txt: remove empty line before list continuation Martin Ågren
2019-03-06  6:30 ` [PATCH 4/5] git-svn.txt: drop escaping '\' that ends up being rendered Martin Ågren
2019-03-06  6:30 ` [PATCH 5/5] Documentation: turn middle-of-line tabs into spaces Martin Ågren
2019-03-07  0:29   ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).