Merge branch 'nd/gitignore-trailing-whitespace' into maint
authorJunio C Hamano <gitster@pobox.com>
Wed, 12 Nov 2014 20:13:11 +0000 (12:13 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Nov 2014 20:13:12 +0000 (12:13 -0800)
* nd/gitignore-trailing-whitespace:
gitignore.txt: fix spelling of "backslash"

1  2 
Documentation/gitignore.txt
index 8734c1566ca918e8c62f759aebdf7d0b497e860b,82b7e0b1512702b61a1cd28e024583a3488991d8..09e82c31bd320a162689a7f2d919de439d05375a
@@@ -7,7 -7,7 +7,7 @@@ gitignore - Specifies intentionally unt
  
  SYNOPSIS
  --------
 -$GIT_DIR/info/exclude, .gitignore
 +$HOME/.config/git/ignore, $GIT_DIR/info/exclude, .gitignore
  
  DESCRIPTION
  -----------
@@@ -77,15 -77,13 +77,15 @@@ PATTERN FORMA
     Put a backslash ("`\`") in front of the first hash for patterns
     that begin with a hash.
  
-  - Trailing spaces are ignored unless they are quoted with backlash
+  - Trailing spaces are ignored unless they are quoted with backslash
     ("`\`").
  
   - An optional prefix "`!`" which negates the pattern; any
     matching file excluded by a previous pattern will become
 -   included again.  If a negated pattern matches, this will
 -   override lower precedence patterns sources.
 +   included again. It is not possible to re-include a file if a parent
 +   directory of that file is excluded. Git doesn't list excluded
 +   directories for performance reasons, so any patterns on contained
 +   files have no effect, no matter where they are defined.
     Put a backslash ("`\`") in front of the first "`!`" for patterns
     that begin with a literal "`!`", for example, "`\!important!.txt`".
  
@@@ -187,19 -185,6 +187,19 @@@ Another example
  The second .gitignore prevents Git from ignoring
  `arch/foo/kernel/vmlinux.lds.S`.
  
 +Example to exclude everything except a specific directory `foo/bar`
 +(note the `/*` - without the slash, the wildcard would also exclude
 +everything within `foo/bar`):
 +
 +--------------------------------------------------------------
 +    $ cat .gitignore
 +    # exclude everything except directory foo/bar
 +    /*
 +    !/foo
 +    /foo/*
 +    !/foo/bar
 +--------------------------------------------------------------
 +
  SEE ALSO
  --------
  linkgit:git-rm[1],