M shared/vcs/filelog.go →
shared/vcs/filelog.go "github.com/go-git/go-git/v5/plumbing/object"
)
-const hashLength = 7
-
type Author struct {
Name string
Email string
Date time.Time
Link *url.URL
}
+
+const hashLength = 7
+
+var rewrap = regexp.MustCompile(`\r?\n(\w)`)
func (r *Repository) makeCommitURL(hash string) *url.URL {
return r.remoteURL.JoinPath("commit", hash)
return cs, nil
}
-
-var rewrap = regexp.MustCompile(`\r?\n(\w)`)
func cleanupDescription(description string) string {
return strings.TrimSpace(rewrap.ReplaceAllString(description, " $1"))