diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2016-12-22 17:30:52 +0800 |
---|---|---|
committer | Thomas Boerger <thomas@webhippie.de> | 2016-12-22 10:30:52 +0100 |
commit | 47a7529d9655e11471bbe39958222a13854a6133 (patch) | |
tree | 98e597255245e17d39a0062c3977fb8a510cf413 /vendor/code.gitea.io/git/commit_archive.go | |
parent | 0c5c34d7ddaf31a6d8123dac36b221de61f5ff96 (diff) | |
download | gitea-47a7529d9655e11471bbe39958222a13854a6133.tar.gz gitea-47a7529d9655e11471bbe39958222a13854a6133.zip |
update code.gitea.io/git (#450)
Diffstat (limited to 'vendor/code.gitea.io/git/commit_archive.go')
-rw-r--r-- | vendor/code.gitea.io/git/commit_archive.go | 4 |
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 { |