Skip to contentSkip to conversation

Documentation/init-db.txt: minor style and synopsys fixes

PATCH In review Alexander Kuleshov 3 participants 5 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Documentation/init-db.txt: minor style and synopsys fixes

This patch constists of two minor changes:

* line-wrap 'git init-db' synopsis

* last possible argument '[<directory>]' was missed

---
 Documentation/git-init-db.txt | 5 +++--
 Documentation/git-init.txt    | 6 +++---
 2 files changed, 6 insertions(+), 5 deletions(-)
Documentation/git-init-db.txt +3 -2
index 648a6cd..2c77aaa 100644
@@ -9,8 +9,9 @@ git-init-db - Creates an empty Git repository
 SYNOPSIS
 --------
 [verse]
-'git init-db' [-q | --quiet] [--bare] [--template=<template_directory>] [--separate-git-dir <git dir>] [--shared[=<permissions>]]
-
+'git init-db' [-q | --quiet] [--bare] [--template=<template_directory>]
+	     [--separate-git-dir <git-dir>]
+	     [--shared[=<permissions>]] [<directory>]
 
 DESCRIPTION
 -----------
Documentation/git-init.txt +3 -3
index 369f889..25412ac 100644
@@ -10,8 +10,8 @@ SYNOPSIS
 --------
 [verse]
 'git init' [-q | --quiet] [--bare] [--template=<template_directory>]
-	  [--separate-git-dir <git dir>]
-	  [--shared[=<permissions>]] [directory]
+	  [--separate-git-dir <git-dir>]
+	  [--shared[=<permissions>]] [<directory>]
 
 
 DESCRIPTION
@@ -108,7 +108,7 @@ By default, the configuration flag `receive.denyNonFastForwards` is enabled
 in shared repositories, so that you cannot force a non fast-forwarding push
 into it.
 
-If you provide a 'directory', the command is run inside it. If this directory
+If you provide a <directory>, the command is run inside it. If this directory
 does not exist, it will be created.
 
 --
Signature · 1 line
2.3.0.rc0.314.g170a664.dirty
#1 lore raw
Quoted 1 line · Alexander Kuleshov

Subject: Documentation/init-db.txt: minor style and synopsys fixes

Subject is incorrect now that you're modifying git-init-db.txt and git-init.txt.

Quoted 54 lines

This patch constists of two minor changes:

* line-wrap 'git init-db' synopsis

* last possible argument '[<directory>]' was missed

---
 Documentation/git-init-db.txt | 5 +++--
 Documentation/git-init.txt    | 6 +++---
 2 files changed, 6 insertions(+), 5 deletions(-)
Documentation/git-init-db.txt +3 -2
index 648a6cd..2c77aaa 100644
@@ -9,8 +9,9 @@ git-init-db - Creates an empty Git repository
 SYNOPSIS
 --------
 [verse]
-'git init-db' [-q | --quiet] [--bare] [--template=<template_directory>] [--separate-git-dir <git dir>] [--shared[=<permissions>]]
-
+'git init-db' [-q | --quiet] [--bare] [--template=<template_directory>]
+            [--separate-git-dir <git-dir>]
+            [--shared[=<permissions>]] [<directory>]
 
 DESCRIPTION
 -----------
Documentation/git-init.txt +3 -4
index 369f889..25412ac 100644
@@ -10,8 +10,8 @@ SYNOPSIS
 --------
 [verse]
 'git init' [-q | --quiet] [--bare] [--template=<template_directory>]
-         [--separate-git-dir <git dir>]
-         [--shared[=<permissions>]] [directory]
+         [--separate-git-dir <git-dir>]
+         [--shared[=<permissions>]] [<directory>]
 
 
 DESCRIPTION
@@ -108,7 +108,7 @@ By default, the configuration flag `receive.denyNonFastForwards` is enabled
 in shared repositories, so that you cannot force a non fast-forwarding push
 into it.
 
-If you provide a 'directory', the command is run inside it. If this directory
+If you provide a <directory>, the command is run inside it. If this directory
 does not exist, it will be created.
 
 --
--

2.3.0.rc0.314.g170a664.dirty

#2 lore raw

Yes, right,

how to do it better? Something like: Documentation, init-db/init:.....? Or something else?

Thank you

2015-01-15 22:50 GMT+06:00 Eric Sunshine <[email protected]>:

Quoted 60 lines
Quoted 1 line · Alexander Kuleshov

Subject: Documentation/init-db.txt: minor style and synopsys fixes

Subject is incorrect now that you're modifying git-init-db.txt and git-init.txt.

Quoted 54 lines

This patch constists of two minor changes:

* line-wrap 'git init-db' synopsis

* last possible argument '[<directory>]' was missed

---
 Documentation/git-init-db.txt | 5 +++--
 Documentation/git-init.txt    | 6 +++---
 2 files changed, 6 insertions(+), 5 deletions(-)
Documentation/git-init-db.txt +3 -2
index 648a6cd..2c77aaa 100644
@@ -9,8 +9,9 @@ git-init-db - Creates an empty Git repository
 SYNOPSIS
 --------
 [verse]
-'git init-db' [-q | --quiet] [--bare] [--template=<template_directory>] [--separate-git-dir <git dir>] [--shared[=<permissions>]]
-
+'git init-db' [-q | --quiet] [--bare] [--template=<template_directory>]
+            [--separate-git-dir <git-dir>]
+            [--shared[=<permissions>]] [<directory>]
 
 DESCRIPTION
 -----------
Documentation/git-init.txt +3 -4
index 369f889..25412ac 100644
@@ -10,8 +10,8 @@ SYNOPSIS
 --------
 [verse]
 'git init' [-q | --quiet] [--bare] [--template=<template_directory>]
-         [--separate-git-dir <git dir>]
-         [--shared[=<permissions>]] [directory]
+         [--separate-git-dir <git-dir>]
+         [--shared[=<permissions>]] [<directory>]
 
 
 DESCRIPTION
@@ -108,7 +108,7 @@ By default, the configuration flag `receive.denyNonFastForwards` is enabled
 in shared repositories, so that you cannot force a non fast-forwarding push
 into it.
 
-If you provide a 'directory', the command is run inside it. If this directory
+If you provide a <directory>, the command is run inside it. If this directory
 does not exist, it will be created.
 
 --
--

2.3.0.rc0.314.g170a664.dirty

Signature · 2 lines
_________________________
0xAX
#3 lore raw
Quoted 1 line · Alexander Kuleshov

Yes, right,

Etiquette on this list is to avoid top-posting [1].

Quoted 2 lines

how to do it better? Something like: Documentation, init-db/init:.....? Or something else?

Simplest would be to split it into two patches: one for git-init-db.txt and one for git-init.txt.

Also...

Quoted 7 lines
Quoted 7 lines
Quoted 5 lines · Alexander Kuleshov

Subject: Documentation/init-db.txt: minor style and synopsys fixes This patch constists of two minor changes:

* line-wrap 'git init-db' synopsis

Quoted 7 lines
Quoted 7 lines

Review

Quoted 7 lines

* last possible argument '[<directory>]' was missed

---
+'git init-db' [-q | --quiet] [--bare] [--template=<template_directory>]

(quoted diff) +2 -0
+            [--separate-git-dir <git-dir>]
+            [--shared[=<permissions>]] [<directory>]

Taking Alex's review[2] into consideration:

s/template_directory/template-directory/

[1]: https://lkml.org/lkml/2005/1/11/111
[2]: http://article.gmane.org/gmane.comp.version-control.git/262427

#4 lore raw
In reply to Alexander Kuleshov
Quoted 4 lines · Alexander Kuleshov

Yes, right,

how to do it better? Something like: Documentation, init-db/init:.....? Or something else?

Subject: init-db documentation: fix synopsis style

Quoted 1 line
Quoted 1 line
Quoted 1 line

+'git init-db' [-q | --quiet] [--bare] [--template=<template_directory>]

s/_/-/ while we are at it, perhaps?