summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | 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`.
* | | rebase: provide NULL `exec` on non-EXEC operationsEdward Thomson2015-02-131-0/+1
| |/ |/| | | | | | | Users may want to try to pay attention to the `exec` field on all rebase operations.
* | Merge pull request #2883 from urkud/reget-reader-pointerCarlos Martín Nieto2015-02-131-0/+22
|\ \ | |/ |/| Reinit `reader` pointer after reading included config file
| * Add test for include.path inside included configYury G. Kudryashov2015-02-131-0/+22
| | | | | | | | | | | | It fails at least on my computer, though it may depend on some unpredictable factors (say, will realloc() extend the memory segment in place, or it will allocate new memory).
* | Merge pull request #2866 from ethomson/checkout_perf2Carlos Martín Nieto2015-02-128-4/+61
|\ \ | | | | | | Checkout performance
| * | remove some unused warningsEdward Thomson2015-02-041-0/+4
| | |
| * | tests: update for new test dataEdward Thomson2015-02-023-4/+5
| | |
| * | checkout test: ensure .gitattributes lifecycleEdward Thomson2015-02-025-0/+52
| | | | | | | | | | | | | | | | | | The .gitattributes cache should not reload .gitattributes in the middle of checking out, only between checkout operations. Otherwise, we'll spend all our time stat'ing and read'ing the gitattributes.
* | | Merge pull request #2862 from ↵Carlos Martín Nieto2015-02-121-0/+104
|\ \ \ | | | | | | | | | | | | | | | | jeffhostetler/jeffhostetler/bug/branch_create_after_namespace Remove stale reflog namespace directory before branch creation
| * | | Fix branch creation when branch name matches namespace of previously deleted ↵Jeff Hostetler2015-02-031-0/+104
| | | | | | | | | | | | | | | | branch
* | | | Merge pull request #2880 from ethomson/mkdir_rootCarlos Martín Nieto2015-02-122-0/+43
|\ \ \ \ | | | | | | | | | | Ensure we can make a repo at the root of the filesystem
| * | | | stat: don't remove trailing '/' from root on win32Edward Thomson2015-02-051-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `p_stat` calls `git_win32_path_from_utf8`, which canonicalizes the path. Do not further try to modify the path, else we trim the trailing slash from a root directory and try to access `C:` instead of `C:/`.
| * | | | repo: ensure we can create repo at filesystem rootEdward Thomson2015-02-051-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test to ensure that we can create a repository at the filesystem root. Introduces a new test environment variable, `GITTEST_INVASIVE_FILESYSTEM` for tests that do terrible things like escaping the clar sandbox and writing to the root directory. It is expected that the CI builds will enable this but that normal people would not want this.
* | | | | Merge pull request #2889 from jeffhostetler/jeffhostetler/merge_performanceCarlos Martín Nieto2015-02-125-0/+226
|\ \ \ \ \ | |_|_|_|/ |/| | | | Large merge perf test.
| * | | | Large merge perf test.Jeff Hostetler2015-02-065-0/+226
| | | | |
* | | | | Update clar to d17c7f6Edward Thomson2015-02-051-0/+5
| |/ / / |/| | |
* | | | Merge pull request #2867 from ethomson/8dot3Edward Thomson2015-02-054-0/+32
|\ \ \ \ | | | | | | | | | | Handle 8dot3 filenames being disabled on Win32
| * | | | win32: further cleanups for 8.3 disablingEdward Thomson2015-02-034-9/+30
| | | | |
| * | | | win32: cleanup 8.3 disabled testsEdward Thomson2015-02-032-39/+14
| | | | |
| * | | | Fix test failures when 8.3 is disabledLinquize2015-01-312-4/+40
| | |_|/ | |/| |
* | | | structinit test: use %PRIuZ instead of %d for size_tEdward Thomson2015-02-041-1/+1
| |_|/ |/| |
* | | Merge pull request #2832 from ethomson/appveyor_badgeEdward Thomson2015-01-301-6/+36
|\ \ \ | |/ / |/| | 64-bit Appveyor Builds
| * | structinit test: only run on DEBUG buildsEdward Thomson2015-01-211-1/+16
| | | | | | | | | | | | | | | | | | | | | The structinit tests don't make sense unless structure padding is uniformly initialized, which is unlikely to happen on release builds. Only enable them for DEBUG builds. Further, rename them to core::structinit.