summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2018-09-21 12:57:02 +0200
committerPatrick Steinhardt <ps@pks.im>2018-10-19 12:28:28 +0200
commit923317db3f5900230063a7715cec29aefdb8a713 (patch)
tree7c435a4079b04bb1f5607382e4af1f0437cebb28 /src/commit.c
parentf010b66bf693d22560fd1af584d325a8da42b416 (diff)
downloadlibgit2-923317db3f5900230063a7715cec29aefdb8a713.tar.gz
index: modernize error handling of `index_insert`
The current error hanling of the function `index_insert` is currently very fragile. Instead of erroring out in case an error has happened, it will instead verify that no error has happened for each statement. This makes adding new code to that function an adventurous task. Improve the situation by converting the function to use our typical `goto out` pattern.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions