summaryrefslogtreecommitdiff
path: root/version.h
diff options
context:
space:
mode:
Diffstat (limited to 'version.h')
-rw-r--r--version.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/version.h b/version.h
new file mode 100644
index 0000000000..bbde6d371a
--- /dev/null
+++ b/version.h
@@ -0,0 +1,20 @@
+#ifndef VERSION_H
+#define VERSION_H
+
+struct repository;
+
+extern const char git_version_string[];
+extern const char git_built_from_commit_string[];
+
+const char *git_user_agent(void);
+const char *git_user_agent_sanitized(void);
+
+/*
+ Try to get information about the system using uname(2).
+ Return -1 and put an error message into 'buf' in case of uname()
+ error. Return 0 and put uname info into 'buf' otherwise.
+*/
+int get_uname_info(struct strbuf *buf, unsigned int full);
+
+
+#endif /* VERSION_H */