diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-03 16:07:41 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-03 16:07:41 +0800 |
commit | b8f51b14f28a9fe09f30fb41d140a093c20d7160 (patch) | |
tree | 6a91b4c1b952114b7694b978f7ce0b9924d2d669 /git_misc.go | |
parent | HTTP: Make README rendering more composable (diff) | |
download | forge-b8f51b14f28a9fe09f30fb41d140a093c20d7160.tar.gz forge-b8f51b14f28a9fe09f30fb41d140a093c20d7160.tar.zst forge-b8f51b14f28a9fe09f30fb41d140a093c20d7160.zip |
Rename commitDisplay to commitDisplayOld
Diffstat (limited to '')
-rw-r--r-- | git_misc.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/git_misc.go b/git_misc.go index 3ff6f81..4714e1a 100644 --- a/git_misc.go +++ b/git_misc.go @@ -165,7 +165,7 @@ func getRecentCommits(repo *git.Repository, headHash plumbing.Hash, numCommits i // getRecentCommitsDisplay generates a slice of [commitDisplay] friendly for // use in HTML templates, consisting of numCommits commits from headhash in the // repo. -func getRecentCommitsDisplay(repo *git.Repository, headHash plumbing.Hash, numCommits int) (recentCommits []commitDisplay, err error) { +func getRecentCommitsDisplay(repo *git.Repository, headHash plumbing.Hash, numCommits int) (recentCommits []commitDisplayOld, err error) { var commitIter object.CommitIter var thisCommit *object.Commit @@ -173,7 +173,7 @@ func getRecentCommitsDisplay(repo *git.Repository, headHash plumbing.Hash, numCo if err != nil { return nil, err } - recentCommits = make([]commitDisplay, 0) + recentCommits = make([]commitDisplayOld, 0) defer commitIter.Close() if numCommits < 0 { for { @@ -183,7 +183,7 @@ func getRecentCommitsDisplay(repo *git.Repository, headHash plumbing.Hash, numCo } else if err != nil { return nil, err } - recentCommits = append(recentCommits, commitDisplay{ + recentCommits = append(recentCommits, commitDisplayOld{ thisCommit.Hash, thisCommit.Author, thisCommit.Committer, @@ -199,7 +199,7 @@ func getRecentCommitsDisplay(repo *git.Repository, headHash plumbing.Hash, numCo } else if err != nil { return nil, err } - recentCommits = append(recentCommits, commitDisplay{ + recentCommits = append(recentCommits, commitDisplayOld{ thisCommit.Hash, thisCommit.Author, thisCommit.Committer, @@ -211,7 +211,7 @@ func getRecentCommitsDisplay(repo *git.Repository, headHash plumbing.Hash, numCo return recentCommits, err } -type commitDisplay struct { +type commitDisplayOld struct { Hash plumbing.Hash Author object.Signature Committer object.Signature |