From: Jonathan Nieder Date: Wed, 10 Nov 2010 18:57:39 +0000 (-0600) Subject: Documentation: split gitignore page into sections X-Git-Tag: v1.7.3.4~21^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0b803a6cc679e5448330ddb3ed3ace3cd66f1b31;p=git.git Documentation: split gitignore page into sections A learner-by-example might want to look at the examples section first. Help her out by supplying some section headings: PATTERN FORMAT for the format of lines in an excludes file and EXAMPLES for the two examples. Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/Documentation/gitignore.txt b/Documentation/gitignore.txt index 7dc2e8b0b..254bc1ac2 100644 --- a/Documentation/gitignore.txt +++ b/Documentation/gitignore.txt @@ -62,7 +62,8 @@ files specified by command-line options. Higher-level git tools, such as 'git status' and 'git add', use patterns from the sources specified above. -Patterns have the following format: +PATTERN FORMAT +-------------- - A blank line matches no files, so it can serve as a separator for readability. @@ -98,7 +99,8 @@ Patterns have the following format: For example, "/{asterisk}.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c". -An example: +EXAMPLES +-------- -------------------------------------------------------------- $ git status