summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-11-19 16:33:30 -0800
committerRussell Belfer <rb@github.com>2012-11-19 16:33:30 -0800
commit02df42ddbf87820011aa4ccba9adfde52670e5e2 (patch)
tree686c9f3d89935f3c57a5f390721f6ed223270160 /include/git2
parentcfeef7ce2ca7747a19d3caffa49cd1fda8af5730 (diff)
downloadlibgit2-02df42ddbf87820011aa4ccba9adfde52670e5e2.tar.gz
Set up default internal ignores
This adds "." ".." and ".git" to the internal ignores list by default - asking about paths with these files will always say that they are ignored.
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/ignore.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/git2/ignore.h b/include/git2/ignore.h
index e18615edd..592c96e65 100644
--- a/include/git2/ignore.h
+++ b/include/git2/ignore.h
@@ -41,9 +41,10 @@ GIT_EXTERN(int) git_ignore_add_rule(
/**
* Clear ignore rules that were explicitly added.
*
- * Clears the internal ignore rules that have been set up. This will not
- * turn off the rules in .gitignore files that actually exist in the
- * filesystem.
+ * Resets to the default internal ignore rules. This will not turn off
+ * rules in .gitignore files that actually exist in the filesystem.
+ *
+ * The default internal ignores ignore ".", ".." and ".git" entries.
*
* @param repo The repository to remove ignore rules from.
* @return 0 on success