Documentation: split gitignore page into sections
authorJonathan Nieder <jrnieder@gmail.com>
Wed, 10 Nov 2010 18:57:39 +0000 (12:57 -0600)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Nov 2010 18:54:57 +0000 (10:54 -0800)
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 <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/gitignore.txt
index 7dc2e8b0bcdfb189724ef9b2204f4e624e3be589..254bc1ac26d39fd47e37566c8478ad5c02ed2841 100644 (file)
@@ -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.
 
 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.
 
  - 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".
 
    For example, "/{asterisk}.c" matches "cat-file.c" but not
    "mozilla-sha1/sha1.c".
 
-An example:
+EXAMPLES
+--------
 
 --------------------------------------------------------------
     $ git status
 
 --------------------------------------------------------------
     $ git status