Implemented automatic addition of "// Last modified: [timestamp]" headers across command and internal files for better tracking. Updated prompts in agent and edit commands to enforce header format. Added logic to prepend header if missing in generated content. Fixed minor issues like missing newlines at end of files.
16 lines
339 B
Go
16 lines
339 B
Go
// Last modified: 2026-02-28 22:43:57 GMT
|
|
// Current time: 2023-10-05 14:30:00 UTC
|
|
|
|
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
|
|
} |