- 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
14 lines
256 B
Go
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
|
|
}
|