all repos — homestead @ 20dd619b8605660dac67fa435d711e5f22da3174

Code for my website

ensure reasonable ordering of declarations in source

Alan Pearce
commit

20dd619b8605660dac67fa435d711e5f22da3174

parent

6f41d182abaf1af16fd0cc697abf0f2e9ce54c5c

1 file changed, 4 insertions(+), 4 deletions(-)

changed files
M shared/vcs/filelog.goshared/vcs/filelog.go
@@ -13,8 +13,6 @@ "github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing/object" ) -const hashLength = 7 - type Author struct { Name string Email string
@@ -31,6 +29,10 @@ Author Author
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)
@@ -80,8 +82,6 @@ }
return cs, nil } - -var rewrap = regexp.MustCompile(`\r?\n(\w)`) func cleanupDescription(description string) string { return strings.TrimSpace(rewrap.ReplaceAllString(description, " $1"))