summaryrefslogtreecommitdiff
path: root/include/git2/commit.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-06-05 15:41:42 -0700
committerRussell Belfer <rb@github.com>2013-06-05 15:41:42 -0700
commitf7e5615086134f1d433a1b7a03ee9bbbbe0844af (patch)
tree760f3289276b6057ec010b9a952d8fc9ae313974 /include/git2/commit.h
parent999d4405a69e8d4d3d3bcd4a5d4bf45d8283b172 (diff)
downloadlibgit2-f7e5615086134f1d433a1b7a03ee9bbbbe0844af.tar.gz
Make mkdir early exit cases clearer
There are two places where git_futils_mkdir should exit early or at least do less. The first is when using GIT_MKDIR_SKIP_LAST and having that flag leave no directory left to create; it was being handled previously, but the behavior was subtle. Now I put in a clear explicit check that exits early in that case. The second is when there is no directory to create, but there is a valid path that should be verified. I shifted the logic a bit so we'll be better about not entering the loop than that happens.
Diffstat (limited to 'include/git2/commit.h')
0 files changed, 0 insertions, 0 deletions