pull log output: optimize to be readable by humans

This commit is contained in:
Christian Schwarz
2017-08-06 18:28:05 +02:00
parent cba083cadf
commit 4e45b4090b
5 changed files with 110 additions and 62 deletions

View File

@ -45,6 +45,10 @@ type FilesystemVersion struct {
Creation time.Time
}
func (v FilesystemVersion) String() string {
return fmt.Sprintf("%s%s", v.Type.DelimiterChar(), v.Name)
}
func (v FilesystemVersion) ToAbsPath(p *DatasetPath) string {
var b bytes.Buffer
b.WriteString(p.ToString())