summaryrefslogtreecommitdiff
path: root/file/git-file.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-10-28 04:02:26 -0300
committerWerner Almesberger <werner@almesberger.net>2016-10-28 04:02:26 -0300
commit3f81407dd9a82fddbe130f660e8760e22fe6d287 (patch)
treec7c754f97952eedfa4a943abf74e13710ca67269 /file/git-file.h
parent812bd145ddb39f6fbab53196652ad47520beffd2 (diff)
downloadeeshow-3f81407dd9a82fddbe130f660e8760e22fe6d287.tar.gz
eeshow-3f81407dd9a82fddbe130f660e8760e22fe6d287.tar.bz2
eeshow-3f81407dd9a82fddbe130f660e8760e22fe6d287.zip
file/: retrieve file mtime or commit time
Diffstat (limited to 'file/git-file.h')
-rw-r--r--file/git-file.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/file/git-file.h b/file/git-file.h
index 4369b0e..d2008ee 100644
--- a/file/git-file.h
+++ b/file/git-file.h
@@ -14,6 +14,7 @@
#define FILE_GIT_FILE_H
#include <stdbool.h>
+#include <time.h>
/*
@@ -37,6 +38,7 @@ bool vcs_git_oid_eq(const void *a, const void *b);
struct vcs_git *vcs_git_open(const char *revision, const char *name,
const struct vcs_git *related);
+time_t vcs_git_time(void *ctx);
bool vcs_git_read(void *ctx, struct file *file,
bool (*parse)(const struct file *file, void *user, const char *line),
void *user);