Skip to content

Commit

Permalink
Documentation: split gitignore page into sections
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonathan Nieder authored and Junio C Hamano committed Nov 11, 2010
1 parent 60aa9cf commit 0b803a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Documentation/gitignore.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0b803a6

Please sign in to comment.