- 20 Nov, 2015 1 commit
-
-
Jacques Germishuys committed
-
- 17 Nov, 2015 13 commits
-
-
Racy fixes for writing new indexes
Carlos Martín Nieto committed -
Protect windows SYSDIR when running tests
Carlos Martín Nieto committed -
Don't put the configuration in a subdir of the sandbox named `config`, lest some tests decide to create their own directory called `config`. Prefix with some underscores for uniqueness.
Edward Thomson committed -
Edward Thomson committed
-
Query the `GIT_CONFIG_LEVEL_PROGRAMDATA` location when setting it up for tests, in case the test runner has sandboxed it.
Edward Thomson committed -
Allow users to set the `git_libgit2_opts` search path for the `GIT_CONFIG_LEVEL_PROGRAMDATA`. Convert `GIT_CONFIG_LEVEL_PROGRAMDATA` to `GIT_SYSDIR_PROGRAMDATA` for setting the configuration.
Edward Thomson committed -
Ensure that `git_index_read_index` clears the uptodate bit on files that it modifies. Further, do not propagate the cache from an on-disk index into another on-disk index. Although this should not be done, as `git_index_read_index` is used to bring an in-memory index into another index (that may or may not be on-disk), ensure that we do not accidentally bring in these bits when misused.
Edward Thomson committed -
Ensure that `git_index_read_tree` clears the uptodate bit on files that it modifies.
Edward Thomson committed -
The uptodate bit should have a lifecycle of a single read->write on the index. Once the index is written, the files within it should be scanned for racy timestamps against the new index timestamp.
Edward Thomson committed -
Test that entries are only smudged when we write the index: the entry smudging is to prevent us from updating an index in a way that it would be impossible to tell that an item was racy. Consider when we load an index: any entries that have the same (or newer) timestamp than the index itself are considered racy, and are subject to further scrutiny. If we *save* that index with the same entries that we loaded, then the index would now have a newer timestamp than the entries, and they would no longer be given that additional scrutiny, failing our racy detection! So test that we smudge those entries only on writing the new index, but that we can detect them (in diff) without having to write.
Edward Thomson committed -
When there's no matching index entry (for whatever reason), don't try to dereference the null return value to get at the id. Otherwise when we break something in the index API, the checkout test crashes for confusing reasons and causes us to step through it in a debugger thinking that we had broken much more than we actually did.
Edward Thomson committed -
Keep track of entries that we believe are up-to-date, because we added the index entries since the index was loaded. This prevents us from unnecessarily examining files that we wrote during the cleanup of racy entries (when we smudge racily clean files that have a timestamp newer than or equal to the index's timestamp when we read it). Without keeping track of this, we would examine every file that we just checked out for raciness, since all their timestamps would be newer than the index's timestamp.
Edward Thomson committed -
When examining paths that are racily clean, do a single index->workdir diff over the entirety of the racily clean files, instead of a diff per file.
Edward Thomson committed
-
- 13 Nov, 2015 2 commits
-
-
pool: Never return unaligned buffers
Carlos Martín Nieto committed -
Vicent Marti committed
-
- 12 Nov, 2015 13 commits
-
-
git_index_entry__init_from_stat: set nsec fields in entry stats
Carlos Martín Nieto committed -
Improve error messages when dirs prevent ref/reflog creation
Carlos Martín Nieto committed -
Support setting custom user-agent
Carlos Martín Nieto committed -
Carlos Martín Nieto committed
-
We also keep the "git/1.0" prefix in order to maintain compatibility with hosters.
Carlos Martín Nieto committed -
We still prefix it with "git/1.0" since that's required in many situations, but we replace the area which mentions libgit2.
Carlos Martín Nieto committed -
Carlos Martín Nieto committed
-
Failing test for case sensitive conflicts in the index
Edward Thomson committed -
When a non-empty directory exists and prevents the creation of a reflog, provide a more informative error message.
Edward Thomson committed -
When a (non-empty) directory exists at the reference target location, complain with a more actionable error message.
Edward Thomson committed -
When we insert a conflict in a case-insensitive index, accept the new entry's path as the correct case instead of leaving the path we already had. This puts `git_index_conflict_add()` on the same level as `git_index_add()` in this respect.
Carlos Martín Nieto committed -
When we're at offset 'i', we're dealing with the 'i+1' stage, since conflicts start at 1.
Carlos Martín Nieto committed -
nulltoken committed
-
- 08 Nov, 2015 2 commits
-
-
Diff: Honor `core.symlinks=false` and fake symlinks
Carlos Martín Nieto committed -
Handle submodules with paths in `git_submodule_update`
Carlos Martín Nieto committed
-
- 04 Nov, 2015 3 commits
-
-
Reload the HEAD and index data for a submodule after reading the configuration. The configuration may specify a `path`, so we must update HEAD and index data with that path in mind.
Edward Thomson committed -
Test that `git_submodule_update` can handle a submodule that is freshly cloned and has a path differing from its name.
Edward Thomson committed -
stream: allow registering a user-provided TLS constructor
Edward Thomson committed
-
- 03 Nov, 2015 6 commits
-
-
Edward Thomson committed
-
whitespace. Collapse spaces around newlines for the summary.
Stjepan Rajko committed -
When creating a filebuf, detect a directory that exists in our target file location. This prevents a failure later, when we try to move the lock file to the destination.
Edward Thomson committed -
Edward Thomson committed
-
Test that on platforms without `core.symlinks`, we preserve symlinks in `git_index_add_bypath`. (Users should correct the actual index entry's mode to change a link to a regular file.)
Edward Thomson committed -
On platforms that lack `core.symlinks`, we should not go looking for symbolic links and `p_readlink` their target. Instead, we should examine the file's contents.
Edward Thomson committed
-