diff options
| author | Russell Belfer <arrbee@arrbee.com> | 2012-01-09 15:37:19 -0800 |
|---|---|---|
| committer | Russell Belfer <arrbee@arrbee.com> | 2012-01-11 14:39:51 -0800 |
| commit | df743c7d3a04553ffc04ae7cbc64fb300e7f61d2 (patch) | |
| tree | 7f0dfa714ddb292448cbeaa69f2b5d90a3274d85 /tests | |
| parent | 7e443f696068cd8c84a759e532c2845348e5a6ad (diff) | |
| download | libgit2-df743c7d3a04553ffc04ae7cbc64fb300e7f61d2.tar.gz | |
Initial implementation of gitignore support
Adds support for .gitignore files to git_status_foreach() and
git_status_file(). This includes refactoring the gitattributes
code to share logic where possible. The GIT_STATUS_IGNORED flag
will now be passed in for files that are ignored (provided they
are not already in the index or the head of repo).
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/resources/status/.gitted/info/exclude | 2 | ||||
| -rw-r--r-- | tests/resources/status/ignored_file | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/resources/status/.gitted/info/exclude b/tests/resources/status/.gitted/info/exclude index a5196d1be..0c4042a6a 100644 --- a/tests/resources/status/.gitted/info/exclude +++ b/tests/resources/status/.gitted/info/exclude @@ -4,3 +4,5 @@ # exclude patterns (uncomment them if you want to use them): # *.[oa] # *~ +ignored* + diff --git a/tests/resources/status/ignored_file b/tests/resources/status/ignored_file new file mode 100644 index 000000000..6a79f808a --- /dev/null +++ b/tests/resources/status/ignored_file @@ -0,0 +1 @@ +ignored_file |
