* Dump: Use mholt/archive/v3 to support tar including many compressions Signed-off-by: Philipp Homann <homann.philipp@googlemail.com> * Dump: Allow dump output to stdout Signed-off-by: Philipp Homann <homann.philipp@googlemail.com> * Dump: Fixed bug present since #6677 where SessionConfig.Provider is never "file" Signed-off-by: Philipp Homann <homann.philipp@googlemail.com> * Dump: never pack RepoRootPath, LFS.ContentPath and LogRootPath when they are below AppDataPath Signed-off-by: Philipp Homann <homann.philipp@googlemail.com> * Dump: also dump LFS (fixes #10058) Signed-off-by: Philipp Homann <homann.philipp@googlemail.com> * Dump: never dump CustomPath if CustomPath is a subdir of or equal to AppDataPath (fixes #10365) Signed-off-by: Philipp Homann <homann.philipp@googlemail.com> * Use log.Info instead of fmt.Fprintf Signed-off-by: Philipp Homann <homann.philipp@googlemail.com> * import ordering * make fmt Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Matti R <matti@mdranta.net>
85 lines
2.7 KiB
Go
Vendored
85 lines
2.7 KiB
Go
Vendored
// Code generated by "stringer -type=blockType,literalsBlockType,seqCompMode,tableIndex"; DO NOT EDIT.
|
|
|
|
package zstd
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[blockTypeRaw-0]
|
|
_ = x[blockTypeRLE-1]
|
|
_ = x[blockTypeCompressed-2]
|
|
_ = x[blockTypeReserved-3]
|
|
}
|
|
|
|
const _blockType_name = "blockTypeRawblockTypeRLEblockTypeCompressedblockTypeReserved"
|
|
|
|
var _blockType_index = [...]uint8{0, 12, 24, 43, 60}
|
|
|
|
func (i blockType) String() string {
|
|
if i >= blockType(len(_blockType_index)-1) {
|
|
return "blockType(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _blockType_name[_blockType_index[i]:_blockType_index[i+1]]
|
|
}
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[literalsBlockRaw-0]
|
|
_ = x[literalsBlockRLE-1]
|
|
_ = x[literalsBlockCompressed-2]
|
|
_ = x[literalsBlockTreeless-3]
|
|
}
|
|
|
|
const _literalsBlockType_name = "literalsBlockRawliteralsBlockRLEliteralsBlockCompressedliteralsBlockTreeless"
|
|
|
|
var _literalsBlockType_index = [...]uint8{0, 16, 32, 55, 76}
|
|
|
|
func (i literalsBlockType) String() string {
|
|
if i >= literalsBlockType(len(_literalsBlockType_index)-1) {
|
|
return "literalsBlockType(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _literalsBlockType_name[_literalsBlockType_index[i]:_literalsBlockType_index[i+1]]
|
|
}
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[compModePredefined-0]
|
|
_ = x[compModeRLE-1]
|
|
_ = x[compModeFSE-2]
|
|
_ = x[compModeRepeat-3]
|
|
}
|
|
|
|
const _seqCompMode_name = "compModePredefinedcompModeRLEcompModeFSEcompModeRepeat"
|
|
|
|
var _seqCompMode_index = [...]uint8{0, 18, 29, 40, 54}
|
|
|
|
func (i seqCompMode) String() string {
|
|
if i >= seqCompMode(len(_seqCompMode_index)-1) {
|
|
return "seqCompMode(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _seqCompMode_name[_seqCompMode_index[i]:_seqCompMode_index[i+1]]
|
|
}
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[tableLiteralLengths-0]
|
|
_ = x[tableOffsets-1]
|
|
_ = x[tableMatchLengths-2]
|
|
}
|
|
|
|
const _tableIndex_name = "tableLiteralLengthstableOffsetstableMatchLengths"
|
|
|
|
var _tableIndex_index = [...]uint8{0, 19, 31, 48}
|
|
|
|
func (i tableIndex) String() string {
|
|
if i >= tableIndex(len(_tableIndex_index)-1) {
|
|
return "tableIndex(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _tableIndex_name[_tableIndex_index[i]:_tableIndex_index[i+1]]
|
|
}
|