grokkit/internal/git/helper.go
Greg Gauthier f540f5fc24 refactor(cmd): remove unnecessary last modified comments and timestamps
- Eliminate header comments with timestamps and ownership from all source files
- Update agent and edit commands to clean such comments and simplify response handling
- Add helper to remove last modified lines in edit command
- Minor formatting and import cleanups across codebase
2026-02-28 22:59:16 +00:00

14 lines
256 B
Go

package git
import "os/exec"
func Run(args []string) string {
out, _ := exec.Command("git", args...).Output()
return string(out)
}
func IsRepo() bool {
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
return err == nil
}