summaryrefslogtreecommitdiffstats
path: root/vendor/code.gitea.io/git/commit_archive.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/code.gitea.io/git/commit_archive.go')
-rw-r--r--vendor/code.gitea.io/git/commit_archive.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/code.gitea.io/git/commit_archive.go b/vendor/code.gitea.io/git/commit_archive.go
index 1066ba69c4..e13825a962 100644
--- a/vendor/code.gitea.io/git/commit_archive.go
+++ b/vendor/code.gitea.io/git/commit_archive.go
@@ -10,13 +10,17 @@ import (
"strings"
)
+// ArchiveType archive types
type ArchiveType int
const (
+ // ZIP zip archive type
ZIP ArchiveType = iota + 1
+ // TARGZ tar gz archive type
TARGZ
)
+// CreateArchive create archive content to the target path
func (c *Commit) CreateArchive(target string, archiveType ArchiveType) error {
var format string
switch archiveType {