From 6f5e22e764283262ae8c6519bb030766db0fd35b Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 6 Apr 2025 09:58:02 +0800 Subject: Add more documentation comments --- forged/internal/git2c/cmd_treeraw.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'forged/internal/git2c/cmd_treeraw.go') diff --git a/forged/internal/git2c/cmd_treeraw.go b/forged/internal/git2c/cmd_treeraw.go index c93480a..492cb84 100644 --- a/forged/internal/git2c/cmd_treeraw.go +++ b/forged/internal/git2c/cmd_treeraw.go @@ -9,6 +9,8 @@ import ( "io" ) +// CmdTreeRaw queries git2d for a tree or blob object at the given path within the repository. +// It returns either a directory listing or the contents of a file. 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) -- cgit v1.2.3