diff options
Diffstat (limited to 'src/git.cpp')
-rw-r--r-- | src/git.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/git.cpp b/src/git.cpp index 045d146..b169fa2 100644 --- a/src/git.cpp +++ b/src/git.cpp @@ -63,6 +63,16 @@ namespace GitFS { return gitSafeGet<NetFS::SystemError>( git_tree_entry_bypath, git_tree_entry_free, tree.get(), path.c_str() + 1); } + RefPtr Commitish(const RepositoryPtr & repo, const std::string & name) + { + return gitSafeGet<NetFS::ConfigError>( + git_reference_dwim, git_reference_free, repo.get(), name.c_str()); + } + RefPtr Resolve(const RefPtr & ref) + { + return gitSafeGet<NetFS::ConfigError>( + git_reference_resolve, git_reference_free, ref.get()); + } } } |