- 16 May, 2013 1 commit
-
-
Fetch should not fail when remote HEAD reference is not present locally
Vicent Martí committed
-
- 15 May, 2013 17 commits
-
-
Index entry dup and free
Vicent Martí committed -
Move the git_index_entry to the very top, since it provides the main structure that needs to be understood by the reader, then move the bitmasks for the flags and the flags_extended under that since they are details for looking at particular fields of the structure.
Russell Belfer committed -
This removes the functions to duplicate and free copies of a git_index_entry and updates the comments to explain that you should just use the public definition of the struct as needed.
Russell Belfer committed -
This adds git_index_entry_dup to make a copy of an existing entry and git_index_entry_free to release the memory of the copy. It also updates the documentation for git_index_get_bypath and git_index_get_byindex to make it clear that the returned structure should *not* be modified.
Russell Belfer committed -
The constants for extracting data from git_index_entry flags and flags_extended are not named in a way that makes it easy to know where to use each one. This improves the docs for the flags (and slightly reorganizes them), so it should be more obvious.
Russell Belfer committed -
Bug fixes for checkout and diff
Vicent Martí committed -
Fix trailing whitespaces
Vicent Martí committed -
Since I added the GIT_IDXENTRY_STAGE macro to extract the stage from a git_index_entry, we probably don't need an internal inline function to do the same thing.
Russell Belfer committed -
Under some strange circumstances, diffs can end up listing files that we can't actually open successfully. Instead of aborting the git_diff_find_similar, this makes it so that those files just won't be considered as valid rename/copy targets instead.
Russell Belfer committed -
It is possible for there to be a submodule in a repository with no .gitmodules file (for example, if the user forgot to commit the .gitmodules file). In this case, core Git will just create an empty directory as a placeholder for the submodule but otherwise ignore it. We were generating an error and stopping the checkout. This makes our behavior match that of core git.
Russell Belfer committed -
Unlike blob updates, symlink updates cannot be done "in place" writing over an old symlink. This means that in checkout when we realize that we can safely update a symlink, we still need to remove the old one before writing the new.
Russell Belfer committed -
When the last item in a diff was an untracked directory that only contained ignored items, the loop to scan the contents would run off the end of the iterator and dereference a NULL pointer. This includes a test that reproduces the problem and a fix.
Russell Belfer committed -
nulltoken committed
-
Jameson Miller committed
-
Vicent Marti committed
-
Unify whitespaces to tabs
Vicent Martí committed -
Linquize committed
-
- 14 May, 2013 7 commits
-
-
Russell Belfer committed
-
CMake: vendor strings
Russell Belfer committed -
Create directory for symlink before creating symlink
Russell Belfer committed -
Fix some memory leaks
Russell Belfer committed -
This helps us install multiple versions of the library side-by-side.
Carlos Martín Nieto committed -
Brad Morgan committed
-
nulltoken committed
-
- 12 May, 2013 1 commit
-
-
The code surrounding zlib bundling did not take into consideration that ZLIB_LIBRARY gets cached, and assumed that FIND(ZLIB) would always set ZLIB_FOUND, which does not hold true, as this variable signifies that we have found the package and had to look at the system, as its location was not cached. Only use the bundled sources if the external zlib is neither newly-found nor cached.
Carlos Martín Nieto committed
-
- 11 May, 2013 14 commits
-
-
Fix refdb iteration early termination bug
Carlos Martín Nieto committed -
There was a problem found in the Rugged test suite where the refdb_fs_backend__next function could exit too early in some very specific hashing patterns for packed refs. This ports the Rugged test to libgit2 and then fixes the bug.
Russell Belfer committed -
Fix broken build when MSVC SDL checks is enabled
Vicent Martí committed -
Linquize committed
-
Introduce a refs iterator
Edward Thomson committed -
If the backend doesn't provide support for it, the matching is done in refdb on top of a normal iterator.
Carlos Martín Nieto committed -
Carlos Martín Nieto committed
-
Nobody should ever be using anything other than ALL at this level, so remove the option altogether. As part of this, git_reference_foreach_glob is now implemented in the frontend using an iterator. Backends will later regain the ability of doing the glob filtering in the backend.
Carlos Martín Nieto committed -
Carlos Martín Nieto committed
-
Carlos Martín Nieto committed
-
Selecting wether to list loose or packed references is not something we want to support anymore, so remove a test for this.
Carlos Martín Nieto committed -
Carlos Martín Nieto committed
-
Carlos Martín Nieto committed
-
This allows us to get a list of reference names in a loop instead of callbacks.
Carlos Martín Nieto committed
-