Implement git reset

This commit is contained in:
2025-03-26 03:23:16 +01:00
parent 0d8c447ff6
commit 0d7d251e76

View File

@@ -87,6 +87,9 @@ func main() {
flag.Parse() flag.Parse()
args := flag.Args() args := flag.Args()
if *resetFlag {
*gitFlag = true
}
if len(args) < 3 { if len(args) < 3 {
log.Printf("At least %d arguments are required", 3) log.Printf("At least %d arguments are required", 3)
@@ -136,6 +139,10 @@ func main() {
return return
} }
} }
if *resetFlag {
log.Printf("Files reset to their original state, nothing more to do")
return
}
// Create the processor based on mode // Create the processor based on mode
var proc processor.Processor var proc processor.Processor