Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-02-29tests: use legitimate object idsEdward Thomson
Use legitimate (existing) object IDs in tests so that we have the ability to turn on strict object validation when running tests.
2016-02-12win32: introduce p_timeval that isn't stupidEdward Thomson
Windows defines `timeval` with `long`, which we cannot sanely cope with. Instead, use a custom timeval struct.
2015-11-03diff: test "symlinks" in wd are respected on win32Edward Thomson
When `core.symlinks = false`, we write the symlinks content (target) to a regular file. We should ensure that when we later see that regular file, we treat it specially - and that changing that regular file would actually change the symlink target. (For compatibility with Git for Windows).
2015-10-21tests: Fix warningsVicent Marti
2015-09-12diff::workdir: ensure ignored files are not returnedEdward Thomson
Ensure that a diff with the workdir is not erroneously returning directories.
2015-08-31iterator: saner pathlist matching for idx iteratorEdward Thomson
Some nicer refactoring for index iteration walks. The index iterator doesn't binary search through the pathlist space, since it lacks directory entries, and would have to binary search each index entry and all its parents (eg, when presented with an index entry of `foo/bar/file.c`, you would have to look in the pathlist for `foo/bar/file.c`, `foo/bar` and `foo`). Since the index entries and the pathlist are both nicely sorted, we walk the index entries in lockstep with the pathlist like we do for other iteration/diff/merge walks.
2015-08-31diff: use new iterator pathlist handlingEdward Thomson
When using literal pathspecs in diff with `GIT_DIFF_DISABLE_PATHSPEC_MATCH` turn on the faster iterator pathlist handling. Updates iterator pathspecs to include directory prefixes (eg, `foo/`) for compatibility with `GIT_DIFF_DISABLE_PATHSPEC_MATCH`.
2015-08-29diff: better document GIT_DIFF_PATHSPEC_DISABLEEdward Thomson
Document that `GIT_DIFF_PATHSPEC_DISABLE` is not necessarily about explicit path matching, but also includes matching of directory names. Enforce this in a test.
2015-06-26Removed unused variablesPierre-Olivier Latour
2015-06-26diff: test we don't update index unnecessarilyEdward Thomson
Test that workdir diffs, when presented with UPDATE_INDEX, only write the index when they actually make a change.
2015-06-24Merge pull request #3226 from libgit2/cmn/racy-diff-againEdward Thomson
racy-git, the missing link
2015-06-23Explicitly handle GIT_DELTA_CONFLICTED in git_diff_merge()Pierre-Olivier Latour
This fixes a bug where if a file was in conflicted state in either diff, it would not always remain in conflicted state in the merged diff.
2015-06-22diff: check files with the same or newer timestampsCarlos Martín Nieto
When a file on the workdir has the same or a newer timestamp than the index, we need to perform a full check of the contents, as the update of the file may have happened just after we wrote the index. The iterator changes are such that we can reach inside the workdir iterator from the diff, though it may be better to have an accessor instead of moving these structs into the header.
2015-06-16tests: tick the index when we count OID calculationsCarlos Martín Nieto
These tests want to test that we don't recalculate entries which match the index already. This is however something we force when truncating racily-clean entries. Tick the index forward as we know that we don't perform the modifications which the racily-clean code is trying to avoid.
2015-06-12diff: introduce binary diff callbacksEdward Thomson
Introduce a new binary diff callback to provide the actual binary delta contents to callers. Create this data from the diff contents (instead of directly from the ODB) to support binary diffs including the workdir, not just things coming out of the ODB.
2015-06-02Fixed build warnings on Xcode 6.1Pierre-Olivier Latour
2015-05-28diff conflicts: test index to workdir w/ conflictsEdward Thomson
2014-05-27Fix compile error on Visual StudioCha, Hojeong
2014-05-17Git binary check compat testsRussell Belfer
A variety of data patterns for diffs verified to match the behavior of binary detection with Git on the command line.
2014-05-02Remove trace / add git_diff_perfdata struct + apiRussell Belfer
2014-05-02Add payloads, bitmaps to trace APIRussell Belfer
This is a proposed adjustment to the trace APIs. This makes the trace levels into a bitmask so that they can be selectively enabled and adds a callback-level payload, plus a message-level payload. This makes it easier for me to a GIT_TRACE_PERF callbacks that are simply bypassed if the PERF level is not set.
2014-05-02Don't use trace if GIT_TRACE not definedRussell Belfer
2014-05-02Add GIT_STATUS_OPT_UPDATE_INDEX and use trace APIRussell Belfer
This adds an option to refresh the stat cache while generating status. It also rips out the GIT_PERF stuff I had an makes use of the trace API to keep statistics about what happens during diff.
2014-05-02Add diff option to update index stat cacheRussell Belfer
When diff is scanning the working directory, if it finds a file where it is not sure if the index entry matches the working dir, it will recalculate the OID (which is pretty expensive). This adds a new flag to diff so that if the OID calculation finds that the file actually has not changed (i.e. just the modified time was altered or such), then it will refresh the stat cache in the index so that future calls to diff will not have to check the oid again.
2014-05-02Skip diff oid calc when size definitely changedRussell Belfer
When we think the stat cache in the index seems valid and the size or mode of a file has definitely changed, then don't bother trying to recalculate the OID of the workdir bits to confirm that it is modified - just accept that it is modified. This can result in files that show as modified with no actual diff, but the behavior actually appears to match Git on the command line. This also includes a minor optimization to not perform a submodule lookup on the ".git" directory itself.
2014-05-02Add build option for diff internal statisticsRussell Belfer
2014-03-25Update behavior for untracked sub-reposRussell Belfer
When a directory containing a .git directory (or even just a plain gitlink) was found, libgit2 was going out of its way to treat it specially. This seemed like it was necessary because the diff code was not originally emulating Git's behavior for untracked directories correctly (i.e. scanning for ignored vs untracked items inside). Now that libgit2 diff mimics Git's untracked directory behavior, the special handling for contained Git repos is actually incorrect and this commit rips it out.
2014-01-22Drop git_patch_to_strNicolas Hake
It's hard or even impossible to correctly free the string buffer allocated by git_patch_to_str in some circumstances. Drop the function so people have to use git_patch_to_buf instead - git_buf has a dedicated destructor.
2013-11-15Rename tests-clar to testsBen Straub