summaryrefslogtreecommitdiff
path: root/tests/config/write.c
Commit message (Collapse)AuthorAgeFilesLines
* config: remove the refresh function and backend fieldcmn/config-refresh-removeCarlos Martín Nieto2014-10-231-5/+0
| | | | | | We have been refreshing on read and write for a while now, so git_config_refresh() is at best a no-op, and might just end up wasting cycles.
* Add unit test to test add section without lf at EOFLinquize2014-07-161-0/+16
|
* config: refresh the values on writeCarlos Martín Nieto2014-04-181-1/+1
| | | | | | When writing out, parse the resulting file instead of adding or replacing the value locally. This has the effect of reading external changes as well.
* config: document current write behaviour in a testCarlos Martín Nieto2014-04-181-0/+27
| | | | | | | On set, we set/add the value written to the config's internal values, but we do not refresh old values. Document this in a test in preparation for the refresh changes.
* Improve GIT_EUSER handlingRussell Belfer2013-12-111-0/+1
| | | | | | | | | | | This adds giterr_user_cancel to return GIT_EUSER and clear any error message that is sitting around. As a result of using that in places, we need to be more thorough with capturing errors that happen inside a callback when used internally. To help with that, this also adds giterr_capture and giterr_restore so that when we internally use a foreach-type function that clears errors and converts them to GIT_EUSER, it is easier to restore not just the return value, but the actual error message text.
* Rename tests-clar to testsBen Straub2013-11-141-0/+305