Skip to contentSkip to conversation

minor doc fixes

PATCH In review Martin Ågren 3 participants 6 messages May 9, 2021 – May 10, 2021 Documentation

lore
Share & tools
lore
#0 lore raw

cover minor doc fixes

Two small things I noticed while going through the doc-diff between v2.31.0 and master ("The fourteenth batch").

Martin Ågren (2):
git-repack.txt: remove spurious ")"
pretty-formats.txt: add missing space

 Documentation/git-repack.txt     | 2 +-
 Documentation/pretty-formats.txt | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.31.1.751.gd2f1c929bd
#1 lore raw

PATCH 1/2 git-repack.txt: remove spurious ")"

Drop the ")" at the end of this paragraph. There's a parenthetical remark in this paragraph, but it's been closed on the line above.

---
 Documentation/git-repack.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/git-repack.txt +1 -1
index 317d63cf0d..ef310f362e 100644
@@ -186,7 +186,7 @@ When `--unpacked` is specified, loose objects are implicitly included in
 this "roll-up", without respect to their reachability. This is subject
 to change in the future. This option (implying a drastically different
 repack mode) is not guaranteed to work with all other combinations of
-option to `git repack`).
+option to `git repack`.
 
 CONFIGURATION
 -------------
Signature · 1 line
2.31.1.751.gd2f1c929bd
#2 lore raw

PATCH 2/2 pretty-formats.txt: add missing space

In reply to Martin Ågren

The description of "%ch" is missing a space after "human style", before the parenthetical remark. This description was introduced in b722d4560e ("pretty: provide human date format", 2021-04-25). That commit also added "%ah", which does have the space already.

---
 Documentation/pretty-formats.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/pretty-formats.txt +1 -1
index cd697f508c..58bb279528 100644
@@ -208,7 +208,7 @@ The placeholders are:
 '%ci':: committer date, ISO 8601-like format
 '%cI':: committer date, strict ISO 8601 format
 '%cs':: committer date, short format (`YYYY-MM-DD`)
-'%ch':: committer date, human style(like the `--date=human` option of
+'%ch':: committer date, human style (like the `--date=human` option of
 	linkgit:git-rev-list[1])
 '%d':: ref names, like the --decorate option of linkgit:git-log[1]
 '%D':: ref names without the " (", ")" wrapping.
Signature · 1 line
2.31.1.751.gd2f1c929bd
#3 lore raw

Re: [PATCH 2/2] pretty-formats.txt: add missing space

Quoted 25 lines · Martin Ågren <[email protected]> 于2021年5月9日周日 下午5:10写道:

The description of "%ch" is missing a space after "human style", before the parenthetical remark. This description was introduced in b722d4560e ("pretty: provide human date format", 2021-04-25). That commit also added "%ah", which does have the space already.

---
 Documentation/pretty-formats.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/pretty-formats.txt +1 -2
index cd697f508c..58bb279528 100644
@@ -208,7 +208,7 @@ The placeholders are:
 '%ci':: committer date, ISO 8601-like format
 '%cI':: committer date, strict ISO 8601 format
 '%cs':: committer date, short format (`YYYY-MM-DD`)
-'%ch':: committer date, human style(like the `--date=human` option of
+'%ch':: committer date, human style (like the `--date=human` option of
        linkgit:git-rev-list[1])
 '%d':: ref names, like the --decorate option of linkgit:git-log[1]
 '%D':: ref names without the " (", ")" wrapping.
--
Quoted 2 lines

2.31.1.751.gd2f1c929bd

Sorry, but in here:[1], I have fixed this space missing error.

Junio, this patch have not been merged to master?

[1]: https://lore.kernel.org/git/[email protected]/

#4 lore raw

Re: [PATCH 2/2] pretty-formats.txt: add missing space

Quoted 20 lines · ZheNing Hu
Quoted 9 lines · Martin Ågren <[email protected]> 于2021年5月9日周日 下午5:10写道:

The description of "%ch" is missing a space after "human style", before the parenthetical remark. This description was introduced in b722d4560e ("pretty: provide human date format", 2021-04-25). That commit also added "%ah", which does have the space already.

Documentation/pretty-formats.txt The placeholders are: · line 212

Quoted 6 lines
Documentation/pretty-formats.txt +1 -1
@@ -208,7 +208,7 @@ The placeholders are:
 '%ci':: committer date, ISO 8601-like format
 '%cI':: committer date, strict ISO 8601 format
 '%cs':: committer date, short format (`YYYY-MM-DD`)
-'%ch':: committer date, human style(like the `--date=human` option of
+'%ch':: committer date, human style (like the `--date=human` option of
        linkgit:git-rev-list[1])

Sorry, but in here:[1], I have fixed this space missing error.

Quoted 3 lines

Junio, this patch have not been merged to master?

[1]: https://lore.kernel.org/git/[email protected]/

Ah, thanks for the pointer. It looks like this was merged to "next" in 2320ad8fb0 ("Merge branch 'zh/pretty-date-human' into next", 2021-04-30), so a few days before you sent v4.

Junio probably missed v4 entirely, or he might have responded with something like "v3 is already in next, so please build incrementally on top of it".

Thanks for contributing this functionality. I quite like the "human" format.

Martin

#5 lore raw

Re: [PATCH 2/2] pretty-formats.txt: add missing space

Quoted 8 lines · Martin Ågren

Ah, thanks for the pointer. It looks like this was merged to "next" in 2320ad8fb0 ("Merge branch 'zh/pretty-date-human' into next", 2021-04-30), so a few days before you sent v4.

Junio probably missed v4 entirely, or he might have responded with something like "v3 is already in next, so please build incrementally on top of it".

Thanks for contributing this functionality. I quite like the "human" format.

Thanks, I think that is exactly what happened, except that I wrote the message but it is still in my draft mailbox without being sent ;-)