Re: [PATCH] Documentation: git-add: correct first example

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greg Bacon <gbacon@xxxxxxxxxxxxxx> writes:

> The first example for git-add covers recursive adding of patterns but
> contains an extra backslash.

Correct.  

> Signed-off-by: Greg Bacon <gbacon@xxxxxxxxxxxxxx>
> ---
>  Documentation/git-add.txt |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
> index f74fcf3..93e8f57 100644
> --- a/Documentation/git-add.txt
> +++ b/Documentation/git-add.txt
> @@ -149,11 +149,12 @@ those in info/exclude.  See linkgit:gitrepository-layout[5].
>  EXAMPLES
>  --------
>  
> -* Adds content from all `\*.txt` files under `Documentation` directory
> +* Adds content from all `*.txt` files under `Documentation` directory

For this, both

    http://www.kernel.org/pub/software/scm/git/docs/git-add.html

and output from

    git help add

in my local build seem to be rendered correctly by AsciiDoc.

>  and its subdirectories:
>  +
>  ------------
> -$ git add Documentation/\\*.txt

This indeed results in double-backslash in the output.

> +$ git add Documentation/\*.txt

and this seems to fix it.

Thanks.



--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]