diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-19 11:20:24 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-19 11:20:24 +0800 |
commit | 54926a719de46b3c359f2f7ce3c29ff4fe55397b (patch) | |
tree | b81028ae83c949807313a54296bf6d0b59bea8a0 /http_handle_repo_log.go | |
parent | Remove underscores from Go code, pt 2 (diff) | |
download | forge-54926a719de46b3c359f2f7ce3c29ff4fe55397b.tar.gz forge-54926a719de46b3c359f2f7ce3c29ff4fe55397b.tar.zst forge-54926a719de46b3c359f2f7ce3c29ff4fe55397b.zip |
Remove underscores from Go code, pt 3
Diffstat (limited to 'http_handle_repo_log.go')
-rw-r--r-- | http_handle_repo_log.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http_handle_repo_log.go b/http_handle_repo_log.go index 65719e4..c7dde82 100644 --- a/http_handle_repo_log.go +++ b/http_handle_repo_log.go @@ -20,12 +20,12 @@ func handle_repo_log(w http.ResponseWriter, r *http.Request, params map[string]a repo = params["repo"].(*git.Repository) - if ref_hash, err = get_ref_hash_from_type_and_name(repo, params["ref_type"].(string), params["ref_name"].(string)); err != nil { + if ref_hash, err = getRefHash(repo, params["ref_type"].(string), params["ref_name"].(string)); err != nil { http.Error(w, "Error getting ref hash: "+err.Error(), http.StatusInternalServerError) return } - if commits, err = get_recent_commits(repo, ref_hash, -1); err != nil { + if commits, err = getRecentCommits(repo, ref_hash, -1); err != nil { http.Error(w, "Error getting recent commits: "+err.Error(), http.StatusInternalServerError) return } |