summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* git_revert_opts -> git_revert_optionsoptions-namesBen Straub2014-03-062-8/+8
|
* git_checkout_opts -> git_checkout_optionsBen Straub2014-03-0615-90/+115
|
* tests: MSVC compatCarlos Martín Nieto2014-03-061-2/+4
| | | | | MSVC doesn't like declaring variables in the middle of a block, so make sure we only declare variables at the beginning of a block.
* Added function-based initializers for every options struct.Matthew Bowen2014-03-051-0/+120
| | | | The basic structure of each function is courtesy of arrbee.
* Merge pull request #2159 from libgit2/rb/odb-exists-prefixVicent Marti2014-03-063-1/+66
|\ | | | | Add ODB API to check for existence by prefix and object id shortener
| * Add git_object_short_id API to get short id stringRussell Belfer2014-03-041-0/+44
| | | | | | | | | | | | This finds a short id string that will unambiguously select the given object, starting with the core.abbrev length (usually 7) and growing until it is no longer ambiguous.
| * Add exists_prefix to ODB backend and ODB APIRussell Belfer2014-03-042-1/+22
| |
* | Merge pull request #2163 from ethomson/nobackend_odb_writeVicent Marti2014-03-051-0/+41
|\ \ | |/ |/| ODB writing fails gracefully when unsupported
| * ODB writing fails gracefully when unsupportedEdward Thomson2014-03-051-0/+41
| | | | | | | | If no ODB backends support writing, we should fail gracefully.
* | Remove ignored files from the working directory if they were stashedJacques Germishuys2014-03-041-0/+2
| |
* | Added a test, that fails for #2133Matthias Bartelmeß2014-03-031-0/+15
| |
* | features: Rename `_HAS_` to `_FEATURE_`vmg/featuresVicent Marti2014-03-031-6/+6
| |
* | caps: Rename to features to avoid confusionVicent Marti2014-03-031-8/+8
| |
* | Merge pull request #2144 from linquize/branch-f-currentBen Straub2014-03-021-0/+19
|\ \ | | | | | | Do not allow git_branch_create() to force update branch
| * | Add unit test to show git_branch_create() fails if attempt to force create ↵Linquize2014-03-021-0/+19
| | | | | | | | | | | | current branch
* | | Add buffer to buffer diff and patch APIsRussell Belfer2014-02-271-150/+90
| | | | | | | | | | | | | | | | | | | | | | | | This adds `git_diff_buffers` and `git_patch_from_buffers`. This also includes a bunch of internal refactoring to increase the shared code between these functions and the blob-to-blob and blob-to-buffer APIs, as well as some higher level assert helpers in the tests to also remove redundancy.
* | | Merge pull request #2137 from jru/blame-first-parentBen Straub2014-02-261-0/+15
|\ \ \ | | | | | | | | Blame first-parent history
| * | | Reset num_parents to 1 only for merge commitsJuan Rubén2014-02-261-1/+1
| | | | | | | | | | | | | | | | Also, correct test case to account for the boundary flag
| * | | Add unit testJuan Rubén2014-02-241-0/+15
| | | |
* | | | Move system directory cache out of utilsEdward Thomson2014-02-243-21/+24
| | | |
* | | | Staticize file-local variablesBen Straub2014-02-242-3/+3
| | | |
* | | | Address PR commentsRussell Belfer2014-02-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make GIT_INLINE an internal definition so it cannot be used in public headers * Fix language in CONTRIBUTING * Make index caps API use signed instead of unsigned values
* | | | Improve error propagation in shallow callBen Straub2014-02-181-0/+6
|/ / /
* | | Fix filter test for CRLF->LF issuesEdward Thomson2014-02-111-1/+2
| | |
* | | Merge pull request #2110 from libgit2/ed/crlf_inputRussell Belfer2014-02-114-25/+241
|\ \ \ | | | | | | | | Handle `core.autocrlf=input` when checking out
| * | | Tests for crlf filtering into the repositoryEdward Thomson2014-02-091-0/+136
| | | |
| * | | Tests for core.autocrlf and .gitattributesEdward Thomson2014-02-093-25/+104
| | | |
| * | | Close files on file diff failureEdward Thomson2014-02-091-0/+1
| | |/ | |/| | | | | | | | | | Not closing the files on a diff failure ensures that clar cleanup will fail on win32 because we still have the file open.
* | | refs: move current_id before the reflog parametersCarlos Martín Nieto2014-02-101-4/+4
|/ / | | | | | | | | Keep the reflog parameters as the last two, as they're the optional parameters.
* | Add git_commit_amend APIRussell Belfer2014-02-071-0/+76
| | | | | | | | | | | | | | | | | | This adds an API to amend an existing commit, basically a shorthand for creating a new commit filling in missing parameters from the values of an existing commit. As part of this, I also added a new "sys" API to create a commit using a callback to get the parents. This allowed me to rewrite all the other commit creation APIs so that temporary allocations are no longer needed.
* | Merge pull request #2099 from libgit2/bs/more-reflog-stuffRussell Belfer2014-02-0727-106/+354
|\ \ | | | | | | More reflogness
| * | Correct default reflog message for git_remote_fetchBen Straub2014-02-061-0/+28
| | |
| * | Only run clone-failure test on private repoBen Straub2014-02-051-1/+7
| | |
| * | More merge.conflictstyle fixesBen Straub2014-02-051-0/+7
| | |
| * | Avoid crash when skipping remote testBen Straub2014-02-051-2/+4
| | |
| * | Fix broken clone testBen Straub2014-02-051-12/+4
| | |
| * | Prevent user's merge.conflictstyle from breaking testsBen Straub2014-02-053-0/+21
| | |
| * | Fix a few references to changed function signaturesBen Straub2014-02-051-3/+3
| | |
| * | Merge remote-tracking branch 'libgit2/development' into bs/more-reflog-stuffBen Straub2014-02-053-9/+451
| |\ \
| * | | Add reflog params to git_repository_detach_headBen Straub2014-02-046-13/+34
| | | |
| * | | Add reflog parameters to remote apisBen Straub2014-02-045-12/+67
| | | | | | | | | | | | Also added a test for git_remote_fetch.
| * | | Add reflog parameters to git_push_update_tipsBen Straub2014-02-041-1/+15
| | | |
| * | | Fix reflog message when creating commitsBen Straub2014-02-041-1/+14
| | | |
| * | | Add reset tests for reflogBen Straub2014-02-035-0/+98
| | | |
| * | | Fix warningBen Straub2014-02-031-1/+1
| | | |
| * | | Add reflog parameters to git_resetBen Straub2014-02-039-39/+39
| | | |
| * | | Reset helpers: use revparse insteadBen Straub2014-02-038-32/+23
| | | |
* | | | Merge pull request #2042 from libgit2/cmn/conditional-refRussell Belfer2014-02-072-0/+166
|\ \ \ \ | | | | | | | | | | refs: conditional ref updates
| * | | | refs: add an unconditional deleteCarlos Martín Nieto2014-02-051-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | Add it under the git_reference_remove() name, letting the user pass the repo and name, analogous to unconditional setting/creation.
| * | | | refs: catch cases where the ref type has changedCarlos Martín Nieto2014-02-051-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | If the type of the on-disk reference has changed, the old value comparison should fail.