8000 Clean up some error handling and change callback error behavior by arrbee · Pull Request #1986 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content

Clean up some error handling and change callback error behavior #1986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Dec 13, 2013
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
9f77b3f
Add config read fns with controlled error behavior
arrbee Nov 25, 2013
96869a4
Improve GIT_EUSER handling
arrbee Dec 4, 2013
dab89f9
Further EUSER and error propagation fixes
arrbee Dec 5, 2013
fcd324c
Add git_vector_free_all
arrbee Dec 6, 2013
25e0b15
Remove converting user error to GIT_EUSER
arrbee Dec 6, 2013
6005801
Fix C99 __func__ for MSVC
arrbee Dec 6, 2013
c7b3e1b
Some callback error check style cleanups
arrbee Dec 6, 2013
f10d7a3
Further callback error check style fixes
arrbee Dec 6, 2013
26c1cb9
One more rename/cleanup for callback err functions
arrbee Dec 9, 2013
373cf6a
Update docs for new callback return value behavior
arrbee Dec 9, 2013
19853bd
Update git_blob_create_fromchunks callback behavr
arrbee Dec 10, 2013
cbd0489
Fix checkout notify callback docs and tests
arrbee Dec 10, 2013
8f1066a
Update clone doc and tests for callback return val
arrbee Dec 11, 2013
8046b26
Try a test that won't assert on Linux
arrbee Dec 11, 2013
8b22d86
More improvements to callback return value tests
arrbee Dec 11, 2013
7697e54
Test cancel from indexer progress callback
arrbee Dec 11, 2013
7e3ed41
Fix up some valgrind leaks and warnings
arrbee Dec 12, 2013
11bd7a0
More tests of canceling from callbacks
arrbee Dec 12, 2013
9cfce27
Cleanups, renames, and leak fixes
arrbee Dec 12, 2013
452c7de
Add git_treebuilder_insert test and clarify doc
arrbee Dec 12, 2013
ce33645
pool: Cleanup error handling in pool_strdup
vmg Dec 13, 2013
437f7d6
pool: Correct overflow checks
vmg Dec 13, 2013
7a16d54
pool: Agh, this test doesn't really apply in 32-bit machines
vmg Dec 13, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix C99 __func__ for MSVC
  • Loading branch information
arrbee committed Dec 11, 2013
commit 60058018dcadbaa1f70281c9d29faf1e46d3a87c
4 changes: 4 additions & 0 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ GIT_INLINE(int) giterr_set_callback(int error_code, const char *action)
return error_code;
}

#ifdef GIT_WIN32
#define GITERR_CALLBACK(code) giterr_set_callback((code), __FUNCTION__)
#else
#define GITERR_CALLBACK(code) giterr_set_callback((code), __func__)
#endif

/**
* Gets the system error code for this thread.
Expand Down
0