threads / patch / 38376

patch, 2 partsDocumentation/git-init.txt: minor style and synopsis fixes

Subject: [PATCH 1/2] Documentation/git-init.txt: minor style and synopsis fixes

## tl;dr

2 messages between Jan 15, 2015 and Jan 15, 2015. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Alexander Kuleshov· Jan 15, 2015, 18:16 UTC · lore
Signed-off-by: 0xAX <kuleshovmail@gmail.com>
---
 Documentation/git-init.txt | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
Show changes to Documentation/git-init.txt +6 −4
diff --git a/Documentation/git-init.txt b/Documentation/git-init.txt
index 369f889..f1f0599 100644
--- a/Documentation/git-init.txt
+++ b/Documentation/git-init.txt
@@ -9,9 +9,9 @@ git-init - Create an empty Git repository or reinitialize an existing one
 SYNOPSIS
 --------
 [verse]
-'git init' [-q | --quiet] [--bare] [--template=<template_directory>]
-	  [--separate-git-dir <git dir>]
-	  [--shared[=<permissions>]] [directory]
+'git init' [-q | --quiet] [--bare] [--template=<template-directory>]
+	  [--separate-git-dir <git-dir>]
+	  [--shared[=<permissions>]] [<directory>]
 
 
 DESCRIPTION
@@ -50,12 +50,12 @@ Only print error and warning messages; all other output will be suppressed.
 Create a bare repository. If GIT_DIR environment is not set, it is set to the
 current working directory.
 
---template=<template_directory>::
+--template=<template-directory>::
 
 Specify the directory from which templates will be used.  (See the "TEMPLATE
 DIRECTORY" section below.)
 
---separate-git-dir=<git dir>::
+--separate-git-dir=<git-dir>::
 
 Instead of initializing the repository as a directory to either `$GIT_DIR` or
 `./.git/`, create a text file there containing the path to the actual
@@ -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.315.g0e14eda
Junio C Hamano· Jan 15, 2015, 19:43 UTC · re: Alexander Kuleshov · lore

Re: [PATCH 1/2] Documentation/git-init.txt: minor style and synopsis fixes

Alexander Kuleshov <kuleshovmail@gmail.com> writes:
> Signed-off-by: 0xAX <kuleshovmail@gmail.com>
Hmmmm.
> @@ -50,12 +50,12 @@ Only print error and warning messages; all other
> output will be suppressed.
Linewrapped?

I could apply it after fixing these hunk header lines, but I'd prefer not to, as we wouldn't know where _else_ the mail transport corrupted the patch in a way that "git apply" would not notice.

Show 24 quoted lines
>  Create a bare repository. If GIT_DIR environment is not set, it is set to the
>  current working directory.
>  
> ---template=<template_directory>::
> +--template=<template-directory>::
>  
>  Specify the directory from which templates will be used.  (See the "TEMPLATE
>  DIRECTORY" section below.)
>  
> ---separate-git-dir=<git dir>::
> +--separate-git-dir=<git-dir>::
>  
>  Instead of initializing the repository as a directory to either `$GIT_DIR` or
>  `./.git/`, create a text file there containing the path to the actual
> @@ -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.
>  
>  --

← back to recent threads