diff options
| author | Patrick Steinhardt <ps@pks.im> | 2017-03-28 09:12:34 +0200 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2017-04-04 11:58:46 +0200 |
| commit | a76d75021c50315ab52d7a4e60419dc2e64c47e9 (patch) | |
| tree | e64c9df5751cf25fc7d4d0556d79c29c2427b0bd /include/git2/commit.h | |
| parent | cffd616a7205d6b025f3736eb6c0a1ae9c3cd85d (diff) | |
| download | libgit2-a76d75021c50315ab52d7a4e60419dc2e64c47e9.tar.gz | |
path: short-circuit `git_path_apply_relative` on error
Short-circuit the call to `git_path_resolve_relative` in case
`git_buf_joinpath` returns an error. While this does not fix any
immediate errors, the resulting code is easier to read and handles
potential new error conditions raised by `git_buf_joinpath`.
Diffstat (limited to 'include/git2/commit.h')
0 files changed, 0 insertions, 0 deletions
