Skip to content

Commit 0b803a6

Browse files
jrngitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 60aa9cf commit 0b803a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Documentation/gitignore.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ files specified by command-line options. Higher-level git
6262
tools, such as 'git status' and 'git add',
6363
use patterns from the sources specified above.
6464

65-
Patterns have the following format:
65+
PATTERN FORMAT
66+
--------------
6667

6768
- A blank line matches no files, so it can serve as a separator
6869
for readability.
@@ -98,7 +99,8 @@ Patterns have the following format:
9899
For example, "/{asterisk}.c" matches "cat-file.c" but not
99100
"mozilla-sha1/sha1.c".
100101

101-
An example:
102+
EXAMPLES
103+
--------
102104

103105
--------------------------------------------------------------
104106
$ git status

0 commit comments

Comments
 (0)