summaryrefslogtreecommitdiff
path: root/tests-clay/status
Commit message (Collapse)AuthorAgeFilesLines
* Rename the Clay test suite to ClarVicent Martí2012-01-244-282/+0
| | | | | Clay is the name of a programming language on the makings, and we want to avoid confusions. Sorry for the huge diff!
* Fix handling of relative paths for attrsRussell Belfer2012-01-161-0/+49
| | | | | | | | | | | | Per issue #533, the handling of relative paths in attribute and ignore files was not right. Fixed this by pre-joining the relative path of the attribute/ignore file onto the match string when a full path match is required. Unfortunately, fixing this required a bit more code than I would have liked because I had to juggle things around so that the fnmatch parser would have sufficient information to prepend the relative path when it was needed.
* Patch cleanup for mergeRussell Belfer2012-01-161-3/+3
| | | | | | | | | | After reviewing the gitignore support with Vicent, we came up with a list of minor cleanups to prepare for merge, including: * checking git_repository_config error returns * renaming git_ignore_is_ignored and moving to status.h * fixing next_line skipping to include \r skips * commenting on where ignores are and are not included
* Allow ignores (and attribs) for nonexistent filesRussell Belfer2012-01-111-0/+17
| | | | | | This fixes issue 532 that attributes (and gitignores) could not be checked for files that don't exist. It should be possible to query such things regardless of the existence of the file.
* Initial implementation of gitignore supportRussell Belfer2012-01-112-1/+16
| | | | | | | | 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).
* clay: Move `file_create` to the helpers fileVicent Martí2012-01-021-10/+1
|
* Implement p_renameCarlos Martín Nieto2011-11-071-1/+1
| | | | | | Move the callers of git_futils_mv_atomic to use p_rename. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* *: correct and codify various file permissionsBrodie Rao2011-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following files now have 0444 permissions: - loose objects - pack indexes - pack files - packs downloaded by fetch - packs downloaded by the HTTP transport And the following files now have 0666 permissions: - config files - repository indexes - reflogs - refs This brings libgit2 more in line with Git. Note that git_filebuf_commit() and git_filebuf_commit_at() have both gained a new mode parameter. The latter change fixes an important issue where filebufs created with GIT_FILEBUF_TEMPORARY received 0600 permissions (due to mkstemp(3) usage). Now we chmod() the file before renaming it into place. Tests have been added to confirm that new commit, tag, and tree objects are created with the right permissions. I don't have access to Windows, so for now I've guarded the tests with "#ifndef GIT_WIN32".
* Backport t18 fixes to ClayVicent Marti2011-09-191-2/+4
|
* Fix Clay compilation under Win32Vicent Marti2011-09-162-2/+2
|
* Add missing prototypesVicent Marti2011-09-161-5/+5
|
* Add sample "Status" clay testsVicent Marti2011-09-163-0/+208