diff options
author | Christian Couder <chriscool@tuxfamily.org> | 2008-05-07 06:29:28 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-06 21:46:42 -0700 |
commit | 921177f50fe107a5807baf7e2f63177a86945a60 (patch) | |
tree | c87f39ade59748f64c7649813a9868468f6d1e91 /Documentation/git-add.txt | |
parent | c904bf392d7621b04c14bb9b2e93c3ed08f7e57b (diff) | |
download | git-921177f50fe107a5807baf7e2f63177a86945a60.tar.gz git-921177f50fe107a5807baf7e2f63177a86945a60.tar.xz |
Documentation: improve "add", "pull" and "format-patch" examples
Before this patch in "git-add.txt" and "git-format-patch.txt", the
commands used in the examples were "git-CMD" instead of "git CMD".
This patch fixes that.
In "git-pull.txt" only the last example had the code sample in an
asciidoc "Listing Block", and in the other two files, none.
This patch fixes that by putting all code samples in listing
blocks.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-add.txt')
-rw-r--r-- | Documentation/git-add.txt | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt index 35e67a06e..2eabbc8f7 100644 --- a/Documentation/git-add.txt +++ b/Documentation/git-add.txt @@ -98,21 +98,27 @@ those in info/exclude. See link:repository-layout.html[repository layout]. EXAMPLES -------- -git-add Documentation/\\*.txt:: - Adds content from all `\*.txt` files under `Documentation` - directory and its subdirectories. +* Adds content from all `\*.txt` files under `Documentation` directory +and its subdirectories: ++ +------------ +$ git add Documentation/\\*.txt +------------ + Note that the asterisk `\*` is quoted from the shell in this example; this lets the command to include the files from subdirectories of `Documentation/` directory. -git-add git-*.sh:: - - Considers adding content from all git-*.sh scripts. - Because this example lets shell expand the asterisk - (i.e. you are listing the files explicitly), it does not - consider `subdir/git-foo.sh`. +* Considers adding content from all git-*.sh scripts: ++ +------------ +$ git add git-*.sh +------------ ++ +Because this example lets shell expand the asterisk (i.e. you are +listing the files explicitly), it does not consider +`subdir/git-foo.sh`. Interactive mode ---------------- |