From 125c327795d6f6cf337c5ddc3aa1fa632eb6874f Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Thu, 8 Jun 2006 03:41:35 +0000 Subject: [PATCH] Autogenerated HTML docs for v1.4.0-rc2 --- git-ls-files.html | 16 +++++++++++++--- git-ls-files.txt | 16 ++++++++++++++-- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/git-ls-files.html b/git-ls-files.html index ec6f1d8c..315c0024 100644 --- a/git-ls-files.html +++ b/git-ls-files.html @@ -628,8 +628,7 @@ an optional prefix ! which means that the fate this pattern

if it does not contain a slash /, it is a shell glob pattern and used to match against the filename without - leading directories (i.e. the same way as the current - implementation). + leading directories.

  • @@ -659,6 +658,17 @@ otherwise, it is a shell glob pattern, suitable for --exclude-from=.git/ignore \ --exclude-per-directory=.gitignore +

    Another example:

    +
    +
    +
        $ cat .gitignore
    +    vmlinux*
    +    $ ls arch/foo/kernel/vm*
    +    arch/foo/kernel/vmlinux.lds.S
    +    $ echo '!/vmlinux*' >arch/foo/kernel/.gitignore
    +
    +

    The second .gitignore keeps arch/foo/kernel/vmlinux.lds.S file +from getting ignored.

    See Also

    @@ -678,7 +688,7 @@ otherwise, it is a shell glob pattern, suitable for
    diff --git a/git-ls-files.txt b/git-ls-files.txt index a29c633c..4d8a2ad2 100644 --- a/git-ls-files.txt +++ b/git-ls-files.txt @@ -195,8 +195,7 @@ An exclude pattern is of the following format: - if it does not contain a slash '/', it is a shell glob pattern and used to match against the filename without - leading directories (i.e. the same way as the current - implementation). + leading directories. - otherwise, it is a shell glob pattern, suitable for consumption by fnmatch(3) with FNM_PATHNAME flag. I.e. a @@ -222,6 +221,19 @@ An example: --exclude-per-directory=.gitignore -------------------------------------------------------------- +Another example: + +-------------------------------------------------------------- + $ cat .gitignore + vmlinux* + $ ls arch/foo/kernel/vm* + arch/foo/kernel/vmlinux.lds.S + $ echo '!/vmlinux*' >arch/foo/kernel/.gitignore +-------------------------------------------------------------- + +The second .gitignore keeps `arch/foo/kernel/vmlinux.lds.S` file +from getting ignored. + See Also -------- -- 2.11.0