aboutsummaryrefslogtreecommitdiff
path: root/internal/git2c
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-06 08:35:58 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-06 08:35:58 +0800
commit7daf45b862b8f53ecabc969615437994edb49fe8 (patch)
tree1cc369adae791ecb5130d8d9cd2307ebb639cc34 /internal/git2c
parentMakefile: Silence that bunch of mkdir and cp (diff)
downloadforge-3d6f35780e7bbe8f2d601e663b02f686ea0cbb7c.tar.gz
forge-3d6f35780e7bbe8f2d601e663b02f686ea0cbb7c.tar.zst
forge-3d6f35780e7bbe8f2d601e663b02f686ea0cbb7c.zip
git2c, git2d: Rename cmd1 and cmd2 descriptivelyv0.1.31
Diffstat (limited to 'internal/git2c')
-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
2 files changed, 2 insertions, 2 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)
}