aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_commit.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-19 11:20:24 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-19 11:20:24 +0800
commit54926a719de46b3c359f2f7ce3c29ff4fe55397b (patch)
treeb81028ae83c949807313a54296bf6d0b59bea8a0 /http_handle_repo_commit.go
parentRemove underscores from Go code, pt 2 (diff)
downloadforge-54926a719de46b3c359f2f7ce3c29ff4fe55397b.tar.gz
forge-54926a719de46b3c359f2f7ce3c29ff4fe55397b.tar.zst
forge-54926a719de46b3c359f2f7ce3c29ff4fe55397b.zip
Remove underscores from Go code, pt 3
Diffstat (limited to 'http_handle_repo_commit.go')
-rw-r--r--http_handle_repo_commit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/http_handle_repo_commit.go b/http_handle_repo_commit.go
index f9b7dc5..07f24fb 100644
--- a/http_handle_repo_commit.go
+++ b/http_handle_repo_commit.go
@@ -66,7 +66,7 @@ func handle_repo_commit(w http.ResponseWriter, r *http.Request, params map[strin
params["commit_object"] = commit_object
params["commit_id"] = commit_id_string
- parent_commit_hash, patch, err = get_patch_from_commit(commit_object)
+ parent_commit_hash, patch, err = fmtCommitAsPatch(commit_object)
if err != nil {
http.Error(w, "Error getting patch from commit: "+err.Error(), http.StatusInternalServerError)
return