Implement git reset
This commit is contained in:
7
main.go
7
main.go
@@ -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
|
||||||
|
Reference in New Issue
Block a user