summaryrefslogtreecommitdiff
path: root/src/git.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-07-21 13:54:41 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-07-21 13:54:41 +0100
commit67684b3a9a7205cef15f5978b5adc4df632f5af5 (patch)
tree630a28d313047bf6440b0c349047c6c8de0cb298 /src/git.h
parentAdd a test symlink (diff)
downloadnetfs-gitfs-67684b3a9a7205cef15f5978b5adc4df632f5af5.tar.bz2
netfs-gitfs-67684b3a9a7205cef15f5978b5adc4df632f5af5.tar.xz
netfs-gitfs-67684b3a9a7205cef15f5978b5adc4df632f5af5.zip
Basically all the core functionality
Diffstat (limited to 'src/git.h')
-rw-r--r--src/git.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/git.h b/src/git.h
index c0ae4e3..9107f8b 100644
--- a/src/git.h
+++ b/src/git.h
@@ -23,6 +23,8 @@ namespace GitFS {
}
}
+ [[noreturn]] void ErrorToSystemError(const Error & e);
+
template<typename T>
using TPtr = std::shared_ptr<T>;
@@ -83,6 +85,13 @@ namespace GitFS {
}
}
+namespace NetFS {
+ struct Attr;
+ Attr & operator<<(Attr &, const git_tree_entry &);
+ Attr & operator<<(Attr &, const git_commit &);
+ Attr & operator<<(Attr &, const git_blob &);
+}
+
namespace std {
std::ostream & operator<<(std::ostream &, const git_oid &);
}