summaryrefslogtreecommitdiff
path: root/tests/stash/save.c
Commit message (Collapse)AuthorAgeFilesLines
* stash tests: ensure we save the workdir fileEdward Thomson2015-06-231-2/+10
| | | | | | Ensure that when a file is added in the index and subsequently modified in the working directory, the stashed working directory tree contains the actual working directory contents.
* 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-031-1/+1
| | | | | | | | | | | | 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.
* | Remove the signature from ref-modifying functionsCarlos Martín Nieto2015-03-031-2/+2
|/ | | | | | | | | | 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.
* p_mkdir != mkdir on win32Edward Thomson2014-10-031-2/+2
|
* Added test for stashing files in ignored directoriesJacques Germishuys2014-09-241-0/+17
|
* oid: Export `git_oid_tostr_s` instead of `_allocfmt`vmg/tostr_sVicent Marti2014-08-181-7/+1
| | | | | | The old `allocfmt` is of no use to callers, as they are not able to free the returned buffer. Export a new API that returns a static string that doesn't need to be freed.
* Make checkout match diff for untracked/ignored dirRussell Belfer2014-04-221-0/+6
| | | | | | | | | | | | | | | | | | When diff finds an untracked directory, it emulates Git behavior by looking inside the directory to see if there are any untracked items inside it. If there are only ignored items inside the dir, then diff considers it ignored, even if there is no direct ignore rule for it. Checkout was not copying this behavior - when it found an untracked directory, it just treated it as untracked. Unfortunately, when combined with GIT_CHECKOUT_REMOVE_UNTRACKED, this made is seem that checkout (and stash, which uses checkout) was removing ignored items when you had only asked it to remove untracked ones. This commit moves the logic for advancing past an untracked dir while scanning for non-ignored items into an iterator helper fn, and uses that for both diff and checkout.
* Failing test for stashing a buried ignored fileRussell Belfer2014-04-221-0/+13
|
* Make stash and checkout ignore contained reposRussell Belfer2014-04-221-1/+16
| | | | | | | | | | | To emulate git, stash should not remove untracked git repositories inside the parent repo, and checkout's REMOVE_UNTRACKED should also skip over these items. `git stash` actually prints a warning message for these items. That should be possible with a checkout notify callback if you wanted to, although it would require a bit of extra logic as things are at the moment.
* Remove ignored files from the working directory if they were stashedJacques Germishuys2014-03-041-0/+2
|
* Add reflog params to git_repository_detach_headBen Straub2014-02-041-1/+1
|
* refs: remove the _with_log differentiationCarlos Martín Nieto2014-01-151-1/+1
| | | | | | Any well-behaved program should write a descriptive message to the reflog whenever it updates a reference. Let's make this more prominent by removing the version without the reflog parameters.
* Rename tests-clar to testsBen Straub2013-11-141-0/+354