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_index.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_index.go')
-rw-r--r-- | http_handle_repo_index.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/http_handle_repo_index.go b/http_handle_repo_index.go index da06500..b38863c 100644 --- a/http_handle_repo_index.go +++ b/http_handle_repo_index.go @@ -32,7 +32,7 @@ func handle_repo_index(w http.ResponseWriter, r *http.Request, params map[string notes = append(notes, "Path contains newlines; HTTP Git access impossible") } - ref_hash, err = get_ref_hash_from_type_and_name(repo, params["ref_type"].(string), params["ref_name"].(string)) + ref_hash, err = getRefHash(repo, params["ref_type"].(string), params["ref_name"].(string)) if err != nil { goto no_ref } @@ -48,7 +48,7 @@ func handle_repo_index(w http.ResponseWriter, r *http.Request, params map[string } params["branches"] = branches - if recent_commits, err = get_recent_commits(repo, ref_hash, 3); err != nil { + if recent_commits, err = getRecentCommits(repo, ref_hash, 3); err != nil { goto no_ref } params["commits"] = recent_commits @@ -61,7 +61,7 @@ func handle_repo_index(w http.ResponseWriter, r *http.Request, params map[string goto no_ref } - params["files"] = build_display_git_tree(tree) + params["files"] = makeDisplayTree(tree) params["readme_filename"], params["readme"] = render_readme_at_tree(tree) no_ref: |