summaryrefslogtreecommitdiffstats
path: root/modules/git/cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/cache.go')
-rw-r--r--modules/git/cache.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/git/cache.go b/modules/git/cache.go
new file mode 100644
index 0000000000..dbbbafae4c
--- /dev/null
+++ b/modules/git/cache.go
@@ -0,0 +1,11 @@
+// Copyright 2019 The Gitea Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
+package git
+
+// LastCommitCache cache
+type LastCommitCache interface {
+ Get(repoPath, ref, entryPath string) (*Commit, error)
+ Put(repoPath, ref, entryPath string, commit *Commit) error
+}