summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | structinit test: show which byte differsEdward Thomson2015-01-211-5/+20
| | |
* | | Merge pull request #2819 from libgit2/cmn/config-get-pathEdward Thomson2015-01-261-0/+46
|\ \ \ | |/ / |/| | config: add parsing and getter for paths
| * | config: add parsing and getter for pathscmn/config-get-pathCarlos Martín Nieto2015-01-141-0/+46
| | |
* | | checkout tests: cleanup realpath impl on Win32Edward Thomson2015-01-201-36/+6
| | |
* | | checkout tests: emulate p_realpath poorly on Win32Edward Thomson2015-01-201-1/+64
| | |
* | | checkout: remove files before writing new onesEdward Thomson2015-01-202-2/+99
| | | | | | | | | | | | | | | | | | | | | On case insensitive filesystems, we may have files in the working directory that case fold to a name we want to write. Remove those files (by default) so that we will not end up with a filename that has the unexpected case.
* | | checkout tests: nasty symlinksEdward Thomson2015-01-2018-3/+50
| | | | | | | | | | | | Symbolic links that abuse case insensitivity to write into .git.
* | | git_path_join_unrooted: return base lenEdward Thomson2015-01-201-0/+47
| | | | | | | | | | | | | | | | | | | | | The documentation for `git_path_join_unrooted` states that the base length will be returned, so that consumers like checkout know where to start creating directories instead of always creating directories at the directory root.
* | | checkout: introduce git_checkout_perfdataEdward Thomson2015-01-201-0/+29
| | | | | | | | | | | | | | | Checkout can now provide performance data about the number of (some) syscalls performed using an optional callback.
* | | Add files and tests with many UTF-8 chars and few UTF-8 charsLinquize2015-01-209-1/+31
| | |
* | | Make binary detection work similar to vanilla gitSven Strickroth2015-01-201-1/+1
|/ / | | | | | | | | | | Main change: Don't treat chars > 128 as non-printable (common in UTF-8 files) Signed-off-by: Sven Strickroth <email@cs-ware.de>
* | Merge branch 'pr/2740'Edward Thomson2015-01-143-19/+41
|\ \ | |/ |/|
| * Added GIT_HASHSIG_ALLOW_SMALL_FILES to allow computing signatures for small ↵Pierre-Olivier Latour2015-01-143-19/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | files The implementation of the hashsig API disallows computing a signature on small files containing only a few lines. This new flag disables this behavior. git_diff_find_similar() sets this flag by default which means that rename / copy detection of small files will now work. This in turn affects the behavior of the git_status and git_blame APIs which will now detect rename of small files assuming the right options are passed.
* | Merge commit '4b1018d24f980273528743c27c47ceb96cb720bd'Carlos Martín Nieto2015-01-091-0/+31
|\ \ | | | | | | | | | Fix crash in free() when git_buf_grow() fails.
| * | Fix crash in free() when git_buf_grow() fails.Jeff Hostetler2015-01-091-0/+31
| | |
* | | Fix warningCarlos Martín Nieto2015-01-091-1/+1
| | |
* | | Merge pull request #2810 from ethomson/remove_symlinksCarlos Martín Nieto2015-01-092-10/+40
|\ \ \ | | | | | | | | Remove symlinks from the repository
| * | | repo::init test: create hook symlinkEdward Thomson2015-01-082-10/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the hook symlink from the test resources, so that we can have a source tree that is easy to zip up and copy around on systems that don't support symlinks. Create it dynamically at test execution instead.
* | | | submodule::init tests: free some leaksEdward Thomson2015-01-081-1/+5
| | | |
* | | | Merge pull request #2802 from calavera/remote_create_prune_configEdward Thomson2015-01-081-0/+44
|\ \ \ \ | |/ / / |/| | | Load prune configuration when a remote is created.
| * | | Fix more indentation.David Calavera2015-01-071-1/+1
| | | |
| * | | Fix intentation.David Calavera2015-01-051-1/+1
| | | |
| * | | Load prune configuration when a remote is created.David Calavera2015-01-051-0/+44
| | | |
* | | | Add extern function to initialize submodule update options.David Calavera2015-01-071-0/+5
| | | |
* | | | Merge commit 'refs/pull/2632/head' of github.com:libgit2/libgit2Carlos Martín Nieto2015-01-0520-6/+531
|\ \ \ \ | |/ / / |/| | |
| * | | Introduce a convenience function for submodule updatejamill/submodule_updateJameson Miller2014-12-224-6/+424
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This introduces the functionality of submodule update in 'git_submodule_do_update'. The existing 'git_submodule_update' function is renamed to 'git_submodule_update_strategy'. The 'git_submodule_update' function now refers to functionality similar to `git submodule update`, while `git_submodule_update_strategy` is used to get the configured value of submodule.<name>.update.
| * | | submodule init should resolve relative url pathsJameson Miller2014-12-2217-0/+107
| | |/ | |/| | | | | | | | | | Submodule init should handle relative paths in .gitmodules files and resolve these urls when updating the git config file.
* | | Plug a couple of leaksCarlos Martín Nieto2015-01-042-1/+1
| |/ |/|
* | Merge pull request #2761 from libgit2/cmn/fetch-pruneEdward Thomson2014-12-301-0/+285
|\ \ | | | | | | Remote-tracking branch prunning
| * | fetch: plug leaks in the prune testsCarlos Martín Nieto2014-12-141-18/+34
| | |
| * | fetch: remove the prune setterCarlos Martín Nieto2014-12-141-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | This option does not get persisted to disk, which makes it different from the rest of the setters. Remove it until we go all the way. We still respect the configuration option, and it's still possible to perform a one-time prune by calling the function.
| * | fetch: add test for the other order of overlapping specsCarlos Martín Nieto2014-12-141-0/+9
| | |
| * | fetch: assert we don't call update tips when there are no upatesCarlos Martín Nieto2014-12-141-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is hiding a bug in the prune code, whereby we prune references we shouldn't but don't notice it in the code afterwards because update_tips() recreates them. This means that we do perform changes to the references (and get rid of the reflogs) when we shouldn't.
| * | fetch: do set prune when testingCarlos Martín Nieto2014-12-141-0/+1
| | | | | | | | | | | | | | | We load the remote again, so we need to ask the new remote to prune the refs, or we're not exercising the code in our tests.
| * | Make sure that `fetch --prune --tags` doesn't remove tags.David Calavera2014-12-141-0/+59
| | |
| * | Cleanup repository after prune tests.David Calavera2014-12-141-19/+14
| | |
| * | Cleanup after testing remote prune.David Calavera2014-12-141-3/+6
| | |
| * | Fix references to git_remote_lookup.David Calavera2014-12-141-6/+6
| | |
| * | Test that prune overlapping works as expected.David Calavera2014-12-141-0/+64
| | |
| * | Fix calls to `git_remote_download` and `git_remote_fetch`.David Calavera2014-12-141-6/+6
| | |
| * | Add test for prune refsLinquize2014-12-141-0/+128
| | |
* | | Merge pull request #2762 from libgit2/cmn/hide-pushEdward Thomson2014-12-303-54/+39
|\ \ \ | | | | | | | | remote: remove git_push from the public API
| * | | remote: remove git_push from the public APIcmn/hide-pushCarlos Martín Nieto2014-12-303-54/+39
| |/ / | | | | | | | | | | | | Instead we provide git_remote_upload() and git_remote_update_tips() in order to have a parallel API for fetching and pushing.
* | | treebuilder: rename _create() to _new()cmn/treebuilder-newCarlos Martín Nieto2014-12-274-15/+15
| | | | | | | | | | | | | | | | | | This function is a constructor, so let's name it like one and leave _create() for the reference functions, which do create/write the reference.
* | | Always checkout with case sensitive iteratorEdward Thomson2014-12-231-13/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | On a case-insensitive filesystem, we need to deal with case-changing renames (eg, foo -> FOO) by removing the old and adding the new, exactly as if we were on a case-sensitive filesystem. Update the `checkout::tree::can_cancel_checkout_from_notify` test, now that notifications are always sent case sensitively.
* | | Introduce test for checkout case-changing renameEdward Thomson2014-12-231-0/+77
| |/ |/|
* | Merge pull request #2763 from libgit2/cmn/local-proto-progressEdward Thomson2014-12-201-0/+34
|\ \ | | | | | | Show progress output on fetch for the local transport
| * | local: add failing test for sideband informationCarlos Martín Nieto2014-12-161-0/+34
| |/ | | | | | | | | | | We do not currently generate any messages when we're counting the objects, as might be expected from a local upload-pack. Assert that we do call the function when working.
* | Add more Windows reserved filenamesLinquize2014-12-191-0/+13
| |
* | COM0 is a valid path, although Windows Explorer does not allow to create thisLinquize2014-12-191-0/+2
| |