aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/git2c/cmd_index.go (renamed from internal/git2c/cmd1.go)2
-rw-r--r--internal/git2c/cmd_treeraw.go (renamed from internal/git2c/cmd2.go)2
-rw-r--r--internal/unsorted/http_handle_repo_index.go2
-rw-r--r--internal/unsorted/http_handle_repo_raw.go2
-rw-r--r--internal/unsorted/http_handle_repo_tree.go2
5 files changed, 5 insertions, 5 deletions
diff --git a/internal/git2c/cmd1.go b/internal/git2c/cmd_index.go
index 68493a2..a705a63 100644
--- a/internal/git2c/cmd1.go
+++ b/internal/git2c/cmd_index.go
@@ -10,7 +10,7 @@ import (
"io"
)
-func (c *Client) Cmd1(repoPath string) ([]Commit, *FilenameContents, error) {
+func (c *Client) CmdIndex(repoPath string) ([]Commit, *FilenameContents, error) {
if err := c.writer.WriteData([]byte(repoPath)); err != nil {
return nil, nil, fmt.Errorf("sending repo path failed: %w", err)
}
diff --git a/internal/git2c/cmd2.go b/internal/git2c/cmd_treeraw.go
index 3bff332..c93480a 100644
--- a/internal/git2c/cmd2.go
+++ b/internal/git2c/cmd_treeraw.go
@@ -9,7 +9,7 @@ import (
"io"
)
-func (c *Client) Cmd2(repoPath, pathSpec string) ([]TreeEntry, string, error) {
+func (c *Client) CmdTreeRaw(repoPath, pathSpec string) ([]TreeEntry, string, error) {
if err := c.writer.WriteData([]byte(repoPath)); err != nil {
return nil, "", fmt.Errorf("sending repo path failed: %w", err)
}
diff --git a/internal/unsorted/http_handle_repo_index.go b/internal/unsorted/http_handle_repo_index.go
index f2bb480..03eed77 100644
--- a/internal/unsorted/http_handle_repo_index.go
+++ b/internal/unsorted/http_handle_repo_index.go
@@ -25,7 +25,7 @@ func (s *Server) httpHandleRepoIndex(w http.ResponseWriter, req *http.Request, p
}
defer client.Close()
- commits, readme, err := client.Cmd1(repoPath)
+ commits, readme, err := client.CmdIndex(repoPath)
if err != nil {
web.ErrorPage500(s.templates, w, params, err.Error())
return
diff --git a/internal/unsorted/http_handle_repo_raw.go b/internal/unsorted/http_handle_repo_raw.go
index 7849d48..3d999e5 100644
--- a/internal/unsorted/http_handle_repo_raw.go
+++ b/internal/unsorted/http_handle_repo_raw.go
@@ -32,7 +32,7 @@ func (s *Server) httpHandleRepoRaw(writer http.ResponseWriter, request *http.Req
}
defer client.Close()
- files, content, err := client.Cmd2(repoPath, pathSpec)
+ files, content, err := client.CmdTreeRaw(repoPath, pathSpec)
if err != nil {
web.ErrorPage500(s.templates, writer, params, err.Error())
return
diff --git a/internal/unsorted/http_handle_repo_tree.go b/internal/unsorted/http_handle_repo_tree.go
index cbbba98..96920f6 100644
--- a/internal/unsorted/http_handle_repo_tree.go
+++ b/internal/unsorted/http_handle_repo_tree.go
@@ -33,7 +33,7 @@ func (s *Server) httpHandleRepoTree(writer http.ResponseWriter, request *http.Re
}
defer client.Close()
- files, content, err := client.Cmd2(repoPath, pathSpec)
+ files, content, err := client.CmdTreeRaw(repoPath, pathSpec)
if err != nil {
web.ErrorPage500(s.templates, writer, params, err.Error())
return