- 22 Feb, 2013 1 commit
-
-
nulltoken committed
-
- 16 Feb, 2013 1 commit
-
-
The cppcheck static analyzer generates warnings for a bunch of places in the libgit2 code base. All the ones fixed in this commit are actually false positives, but I've reorganized the code to hopefully make it easier for static analysis tools to correctly understand the structure. I wouldn't do this if I felt like it was making the code harder to read or worse for humans, but in this case, these fixes don't seem too bad and will hopefully make it easier for better analysis tools to get at any real issues.
Russell Belfer committed
-
- 11 Feb, 2013 2 commits
- 31 Jan, 2013 1 commit
-
-
A leading slash confuses the name normalization code when the flags include ALLOW_ONELEVEL. Catch this case in particular to avoid triggering an assertion in the uppercase check which expects us not to pass it an empty string. The existing tests don't catch this as they simply use the NORMAL flag. This fixes #1300.
Carlos Martín Nieto committed
-
- 22 Jan, 2013 2 commits
-
-
Also ammends one of the tag tests to make sure it's working.
Scott J. Goldman committed -
This reverts commit 28b1cdf3. //cc #1262 #1267
Scott J. Goldman committed
-
- 21 Jan, 2013 1 commit
-
-
Fixes #1262
Scott J. Goldman committed
-
- 16 Jan, 2013 1 commit
-
-
nulltoken committed
-
- 08 Jan, 2013 1 commit
-
-
Edward Thomson committed
-
- 05 Jan, 2013 1 commit
-
-
I saw a repo in the wild today which had a master branch ref which was packed, but had no trailing newline. Git handled it fine, but libgit2 choked on it. Fix seems simple enough. If we don't see a newline, assume the end of the buffer is the end of the ref line.
Scott J. Goldman committed
-
- 28 Dec, 2012 1 commit
-
-
When normalizing a reference name, if there is an error because the name is invalid, then the memory allocated for storing the name could be leaked if the caller was not careful and assumed that the error return code meant that no allocation had occurred. This fixes that by explicitly deallocating the reference name buffer if there is an error in normalizing the name.
Russell Belfer committed
-
- 18 Dec, 2012 2 commits
-
-
I was totally flaunting @ben's 3-space tab advice.
Rick Bradley committed -
This looked wrong to me. I *think* this is more appropriate commentary.
Rick Bradley committed
-
- 14 Dec, 2012 2 commits
-
-
Ben Straub committed
-
Ben Straub committed
-
- 01 Dec, 2012 2 commits
- 27 Nov, 2012 3 commits
-
-
Russell Belfer committed
-
As part of API review, use a typedef for the callback fn ptr.
Russell Belfer committed -
Ben Straub committed
-
- 09 Nov, 2012 1 commit
-
-
* Rework GIT_DIRREMOVAL values to GIT_RMDIR flags, allowing combinations of flags * Add GIT_RMDIR_EMPTY_PARENTS flag to remove parent dirs that are left empty after removal * Add GIT_MKDIR_VERIFY_DIR to give an error if item is a file, not a dir (previously an EEXISTS error was ignored, even for files) and enable this flag for git_futils_mkpath2file call * Improve accuracy of error messages from git_futils_mkdir
Russell Belfer committed
-
- 01 Nov, 2012 1 commit
-
-
This improves docs in some of the public header files, cleans up and improves some of the example code, and fixes a couple of pedantic warnings in places.
Russell Belfer committed
-
- 30 Oct, 2012 1 commit
-
-
This adds a new API that allows users to reload the config if the file has changed on disk. A new config callback function to refresh the config was added. The modified time and file size are used to test if the file needs to be reloaded (and are now stored in the disk backend object). In writing tests, just using mtime was a problem / race, so I wanted to check file size as well. To support that, I extended `git_futils_readbuffer_updated` to optionally check file size in addition to mtime, and I added a new function `git_filebuf_stats` to fetch the mtime and size for an open filebuf (so that the config could be easily refreshed after a write). Lastly, I moved some similar file checking code for attributes into filebuf. It is still only being used for attrs, but it seems potentially reusable, so I thought I'd move it over.
Russell Belfer committed
-
- 15 Oct, 2012 2 commits
-
-
Also introduce the slective ref trimming promised but also missed in the previous commit.
Carlos Martín Nieto committed -
We used to require loose references to contain only an OID (possibly after trimming the string). This is however not enough for letting us lookup FETCH_HEAD, which can have a lot of content after the initial OID. Change the parsing rules so that a loose refernce must e at least 40 bytes long and the 41st (if it's there) must be accepted by isspace(3). This makes the trim unnecessary, so only do it for symrefs. This fixes #977.
Carlos Martín Nieto committed
-
- 11 Oct, 2012 1 commit
-
-
nulltoken committed
-
- 09 Oct, 2012 1 commit
-
-
This started as a complex new test for checkout going through the "typechanges" test repository, but that revealed numerous issues with checkout, including: * complete failure with submodules * failure to create blobs with exec bits * problems when replacing a tree with a blob because the tree "example/" sorts after the blob "example" so the delete was being processed after the single file blob was created This fixes most of those problems and includes a number of other minor changes that made it easier to do that, including improving the TYPECHANGE support in diff/status, etc.
Russell Belfer committed
-
- 07 Oct, 2012 3 commits
- 01 Oct, 2012 1 commit
-
-
Russell Belfer committed
-
- 30 Sep, 2012 1 commit
-
-
Indicate whether the error comes from the ref already existing or elsewhere. We always perform the check and this lets the user write more concise code.
Carlos Martín Nieto committed
-
- 25 Sep, 2012 3 commits
- 14 Sep, 2012 1 commit
-
-
Fix #936
nulltoken committed
-
- 06 Sep, 2012 1 commit
-
-
Fix #530
nulltoken committed
-
- 05 Sep, 2012 1 commit
-
-
This refactors the diff output code so that an iterator object can be used to traverse and generate the diffs, instead of just the `foreach()` style with callbacks. The code has been rearranged so that the two styles can still share most functions. This also replaces `GIT_REVWALKOVER` with `GIT_ITEROVER` and uses that as a common error code for marking the end of iteration when using a iterator style of object.
Russell Belfer committed
-
- 28 Aug, 2012 1 commit
-
-
Michael Schubert committed
-