From: Sergey Matveev Date: Sat, 14 Mar 2020 10:16:00 +0000 (+0300) Subject: Fix variable name X-Git-Tag: v0.4.0~7 X-Git-Url: http://www.git.stargrave.org/?p=sgblog.git;a=commitdiff_plain;h=e54065c9890f7b9190f3b8ab55de3427cb851fd9 Fix variable name --- diff --git a/cmd/sgblog/main.go b/cmd/sgblog/main.go index df9e075..2db6dbe 100644 --- a/cmd/sgblog/main.go +++ b/cmd/sgblog/main.go @@ -352,12 +352,12 @@ func main() { if err != nil { makeErr(err) } - commentN := 0 + commitN := 0 for i := 0; i < offset; i++ { if _, err = repoLog.Next(); err != nil { break } - commentN++ + commitN++ } entries := make([]TableEntry, 0, PageEntries) @@ -390,7 +390,7 @@ func main() { `C` + "Linked to\n") for _, entry := range entries { - commentN++ + commitN++ lines := msgSplit(entry.commit.Message) domains := []string{} for _, line := range lines[2:] { @@ -411,7 +411,7 @@ func main() { "%s"+ "%d%s"+ "%s\n", - commentN, entry.commit.Author.When.Format(sgblog.WhenFmt), + commitN, entry.commit.Author.When.Format(sgblog.WhenFmt), makeA(cfg.URLPrefix+"/"+entry.commit.Hash.String(), lines[0]), len(lines)-2, commentsValue,