seafile_recovery/command.go

21 lines
383 B
Go
Raw Normal View History

2021-04-22 09:29:04 +00:00
package main
import(
"log"
)
func cmdHead(config configCollect) {
rc := NewRepoCommits(config)
rc.CollectDescs()
log.Println("Repo contains", len(rc.CommitDesc), "commits")
rc.CollectContent()
rc.BuildGraph()
rc.FindLeafs()
log.Println("Repo has", len(rc.Leafs), "leafs")
rc.ChooseHead()
log.Println("Proposing following HEAD:\n"+rc.Head.Content.String())
}