diff options
author | Russell Belfer <rb@github.com> | 2012-07-10 15:13:30 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-07-10 23:19:47 -0700 |
commit | b0fe11292219f5d63f2159e0b0eb24ff21d66b10 (patch) | |
tree | 62a8d4e86fbd701152d65c42eda86bd14fdfdada /include/git2/commit.h | |
parent | 039fc4067989a14a09784ed16ce7126ac75461cb (diff) | |
download | libgit2-b0fe11292219f5d63f2159e0b0eb24ff21d66b10.tar.gz |
Add path utilities to resolve relative paths
This makes it easy to take a buffer containing a path with relative
references (i.e. .. or . path segments) and resolve all of those
into a clean path. This can be applied to URLs as well as file
paths which can be useful.
As part of this, I made the drive-letter detection apply on all
platforms, not just windows. If you give a path that looks like
"c:/..." on any platform, it seems like we might as well detect
that as a rooted path. I suppose if you create a directory named
"x:" on another platform and want to use that as the beginning
of a relative path under the root directory of your repo, this
could cause a problem, but then it seems like you're asking for
trouble.
Diffstat (limited to 'include/git2/commit.h')
0 files changed, 0 insertions, 0 deletions