summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge pull request #2961 from ethomson/filter_relative_pathsEdward Thomson2015-03-061-0/+97
|\ \ \ | | | | | | | | Filter relative paths
| * | | filter::file tests: test filter_list_apply_to_fileEdward Thomson2015-03-061-0/+97
| |/ / | | | | | | | | | | | | Test that filter_list_apply_to_file works and can accept repo-relative paths.
* | | branch: fix generated reflog message upon renamingnulltoken2015-03-041-1/+1
| | |
* | | branch: fix generated reflog message upon creationnulltoken2015-03-041-1/+1
|/ /
* | Merge pull request #2932 from jeffhostetler/jeffhostetler/big_clone_crashCarlos Martín Nieto2015-03-041-0/+48
|\ \ | | | | | | Fix crash in git_clone on extremely large repos
| * | Fix p_ftruncate to handle big files for git_cloneJeff Hostetler2015-03-031-0/+48
| |/
* | libgit2_shutdown: clear err message on shutdownEdward Thomson2015-03-041-1/+0
| | | | | | | | | | | | Clear the error message on git_libgit2_shutdown for all versions of the library (no threads and Win32 threads). Drop the giterr_clear in clar, as that shouldn't be necessary.
* | Merge pull request #2886 from jeffhostetler/jeffhostetler/clar_traceCarlos Martín Nieto2015-03-046-0/+324
|\ \ | | | | | | Set up git_trace in clar test suite.
| * | Converted cl_perf_timer to use git__timer internally.Jeff Hostetler2015-03-032-76/+11
| | |
| * | Added cl_perf_timer. Updated global trace to include timers.Jeff Hostetler2015-03-023-1/+152
| | |
| * | Cleanup formatting of clar trace messages.Jeff Hostetler2015-03-021-7/+7
| | |
| * | Provide mechanism to let CLAR globally setup git_trace()Jeff Hostetler2015-03-024-0/+238
| | |
* | | Merge pull request #2945 from ethomson/empty_hashsig_heapCarlos Martín Nieto2015-03-041-0/+100
|\ \ \ | | | | | | | | diff_tform: don't compare empty hashsig_heaps
| * | | diff_tform: account for whitespace optionsEdward Thomson2015-03-041-6/+68
| | | | | | | | | | | | | | | | | | | | When comparing seemingly blank files, take whitespace options into account.
| * | | diff_tform: don't compare empty hashsig_heapsEdward Thomson2015-03-031-0/+38
| | | | | | | | | | | | | | | | Don't try to compare two empty hashsig_heaps.
* | | | Plug a few leaksCarlos Martín Nieto2015-03-043-0/+5
| | | |
* | | | config: borrow refcounted referencescmn/config-borrow-entryCarlos Martín Nieto2015-03-0320-240/+235
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the get_entry() method to return a refcounted version of the config entry, which you have to free when you're done. This allows us to avoid freeing the memory in which the entry is stored on a refresh, which may happen at any time for a live config. For this reason, get_string() has been forbidden on live configs and a new function get_string_buf() has been added, which stores the string in a git_buf which the user then owns. The functions which parse the string value takea advantage of the borrowing to parse safely and then release the entry.
* | | Remove swp filesCarlos Martín Nieto2015-03-031-0/+0
| | |
* | | Merge pull request #2913 from ethomson/stash_fixupEdward Thomson2015-03-031-0/+19
|\ \ \ | | | | | | | | stash: correctly stash wd modified/index deleted
| * | | stash: correctly stash wd modified/index deletedEdward Thomson2015-02-181-0/+19
| | | |
* | | | repository: remove log message override for switching the active branchCarlos Martín Nieto2015-03-0316-81/+66
| | | | | | | | | | | | | | | | | | | | | | | | We want to use the "checkout: moving from ..." message in order to let git know when a change of branch has happened. Make the convenience functions for this goal write this message.
* | | | push: remove reflog message overrideCarlos Martín Nieto2015-03-032-4/+4
| | | | | | | | | | | | | | | | We always use "update by push".
* | | | branch: don't accept a reflog message overrideCarlos Martín Nieto2015-03-036-80/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This namespace is about behaving like git's branch command, so let's do exactly that instead of taking a reflog message. This override is still available via the reference namespace.
* | | | reset: remove reflog message overrideCarlos Martín Nieto2015-03-0311-85/+69
| | | | | | | | | | | | | | | | | | | | This function is meant to simulate what git does in the reset command, so we should include the reflog message in that.
* | | | Remove the signature from ref-modifying functionsCarlos Martín Nieto2015-03-0365-395/+343
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The signature for the reflog is not something which changes dynamically. Almost all uses will be NULL, since we want for the repository's default identity to be used, making it noise. In order to allow for changing the identity, we instead provide git_repository_set_ident() and git_repository_ident() which allow a user to override the choice of signature.
* | | | Merge pull request #2908 from ethomson/safe_createCarlos Martín Nieto2015-03-038-43/+92
|\ \ \ \ | |_|/ / |/| | | Allow checkout to handle newly cloned repositories, remove `GIT_CHECKOUT_SAFE_CREATE`
| * | | checkout tests: just use SAFE where appropriateEdward Thomson2015-02-272-9/+4
| | | |
| * | | checkout: remove `GIT_CHECKOUT_SAFE_CREATE` as a strategyEdward Thomson2015-02-275-40/+58
| | | |
| * | | clone: drop now unnecessary SAFE_CREATEEdward Thomson2015-02-272-2/+2
| | | |
| * | | checkout: upgrade to `SAFE_CREATE` when no index fileEdward Thomson2015-02-271-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | When the repository does not contain an index, emulate git's behavior and upgrade to `SAFE_CREATE`. This allows us to check out repositories created with `git clone --no-checkout`.
| * | | merge perf test: drop unnecessary SAFE_CREATEEdward Thomson2015-02-271-1/+1
| | |/ | |/|
* | | Update to clar 2b73f5eEdward Thomson2015-02-272-0/+75
|/ /
* | tests: separate INVASIVE filesystem testsEdward Thomson2015-02-192-2/+2
| | | | | | | | | | | | Introduce GITTEST_INVASIVE_FS_STRUCTURE for things that are invasive to your filesystem structure (like creating folders at your filesystem root) and GITTEST_INVASIVE_FS_SIZE for things that write lots of data.
* | git_filter_opt_t -> git_filter_flag_tEdward Thomson2015-02-191-1/+1
| | | | | | | | | | For consistency with the rest of the library, where an opt is an options *structure*.
* | filter streams: base -> parentEdward Thomson2015-02-181-4/+4
| |
* | git_writestream: from git_filter_streamEdward Thomson2015-02-181-8/+8
| |
* | filter: test a large file through the streamEdward Thomson2015-02-171-0/+221
| | | | | | | | | | Test pushing a file on-disk into a streaming filter that compresses it into the ODB, and inflates it back into the working directory.
* | Remove extra semicolon outside of a functionStefan Widgren2015-02-152-2/+2
| | | | | | | | | | Without this change, compiling with gcc and pedantic generates warning: ISO C does not allow extra ‘;’ outside of a function.
* | Merge pull request #2831 from ethomson/merge_lockCarlos Martín Nieto2015-02-153-4/+153
|\ \ | | | | | | merge: lock index during the merge (not just checkout)
| * | merge: lock the index at the start of the mergeEdward Thomson2015-02-141-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Always lock the index when we begin the merge, before we write any of the metdata files. This prevents a race where another client may run a commit after we have written the MERGE_HEAD but before we have updated the index, which will produce a merge commit that is treesame to one parent. The merge will finish and update the index and the resultant commit would not be a merge at all.
| * | checkout: introduce GIT_CHECKOUT_DONT_WRITE_INDEXEdward Thomson2015-02-141-0/+80
| | |
| * | git_indexwriter: lock then write the indexEdward Thomson2015-02-141-0/+21
| | | | | | | | | | | | | | | | | | Introduce `git_indexwriter`, to allow us to lock the index while performing additional operations, then complete the write (or abort, unlocking the index).
| * | merge test: test an actual failure, not conflictEdward Thomson2015-02-131-6/+5
| |/ | | | | | | | | | | Correct the merge failed cleanup test. Merge data should not be cleaned up on conflicts, only on actual failure. And ORIG_HEAD should not be removed at all.
* | Merge pull request #2895 from ethomson/alloc_overflowCarlos Martín Nieto2015-02-153-0/+97
|\ \ | | | | | | allocations: test for overflow of requested size
| * | buf test: cleanup memory leakEdward Thomson2015-02-131-0/+2
| | |
| * | Make our overflow check look more like gcc/clang'sEdward Thomson2015-02-131-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | Make our overflow checking look more like gcc and clang's, so that we can substitute it out with the compiler instrinsics on platforms that support it. This means dropping the ability to pass `NULL` as an out parameter. As a result, the macros also get updated to reflect this as well.
| * | overflow checking: don't make callers set oomEdward Thomson2015-02-121-0/+21
| | | | | | | | | | | | | | | | | | Have the ALLOC_OVERFLOW testing macros also simply set_oom in the case where a computation would overflow, so that callers don't need to.
| * | git_buf_grow_by: increase buf asize incrementallyEdward Thomson2015-02-122-0/+30
| | | | | | | | | | | | | | | Introduce `git_buf_grow_by` to incrementally increase the size of a `git_buf`, performing an overflow calculation on the growth.
| * | allocations: test for overflow of requested sizeEdward Thomson2015-02-121-0/+40
| | | | | | | | | | | | | | | Introduce some helper macros to test integer overflow from arithmetic and set error message appropriately.
* | | rebase: allow `NULL` branch to indicate `HEAD`Edward Thomson2015-02-131-0/+49
| | | | | | | | | | | | | | | Don't require the branch to rebase, if given `NULL`, simply look up `HEAD`.