mirror of
https://github.com/xiaoqidun/gitcz.git
synced 2024-05-02 13:04:17 +08:00
feat(合并提交): 合并提交,log改fmt减少依赖
This commit is contained in:
parent
b45c7a8e32
commit
d36f61bc80
4
gitcz.go
4
gitcz.go
|
@ -6,7 +6,6 @@ import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
@ -98,7 +97,7 @@ func main() {
|
||||||
czCommit.Closes = InputCloses()
|
czCommit.Closes = InputCloses()
|
||||||
commit := GenerateCommit(czCommit)
|
commit := GenerateCommit(czCommit)
|
||||||
if err := GitCommit(commit, *amend); err != nil {
|
if err := GitCommit(commit, *amend); err != nil {
|
||||||
log.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -221,6 +220,7 @@ func InputCloses() *string {
|
||||||
NewLine()
|
NewLine()
|
||||||
return &text
|
return &text
|
||||||
}
|
}
|
||||||
|
NewLine()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user