mirror of
https://github.com/go-gitea/gitea
synced 2025-07-04 17:47:19 +00:00
update code.gitea.io/git (#450)
This commit is contained in:
committed by
Thomas Boerger
parent
0c5c34d7dd
commit
47a7529d96
4
vendor/code.gitea.io/git/commit_archive.go
generated
vendored
4
vendor/code.gitea.io/git/commit_archive.go
generated
vendored
@ -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 {
|
||||
|
Reference in New Issue
Block a user