seafile_recovery/commit.go

28 lines
782 B
Go
Raw Normal View History

2021-04-21 12:44:49 +00:00
package main
import (
"log"
)
type Commit struct {
CommitId string `json:"commit_id"`
RootId string `json:"root_id"`
RepoId string `json:"repo_id"`
CreatorName string `json:"creator_name"`
Creator string `json:"creator"`
Description string `json:"description"`
Ctime uint64 `json:"ctime"`
ParentId string `json:"parent_id"`
SecondParentId string `json:"second_parent_id"`
RepoName string `json:"repo_name"`
RepoDesc string `json:"repo_desc"`
RepoCategory string `json:"repo_category"`
NoLocalHistory int `json:"no_local_history"`
Version int `json:"version"`
}
func cmdCommit(config configCollect) {
2021-04-21 13:17:22 +00:00
rexists := repoExistsIn(config.Storage, config.RepoId)
if !rexists["commits"] { log.Fatal("No commits folder found for repo ",config.RepoId) }
2021-04-21 12:44:49 +00:00
}