Skip to content

Commit 08e026d

Browse files
docs: add docstring to gitOutput
1 parent 25c1c6e commit 08e026d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/cache/fingerprint.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ func RepoFingerprint(dir string) (string, error) {
3737
return commitSHA + ":" + hex.EncodeToString(h[:8]), nil
3838
}
3939

40+
// gitOutput runs a git command in dir and returns its trimmed stdout.
4041
func gitOutput(dir string, args ...string) (string, error) {
4142
cmd := exec.Command("git", append([]string{"-C", dir}, args...)...)
4243
out, err := cmd.Output()

0 commit comments

Comments
 (0)