mirror of
https://github.com/xiaoqidun/gitcz.git
synced 2024-11-23 07:56:46 +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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
go.mod
2
go.mod
@ -1,3 +1,3 @@
|
|||||||
module github.com/xiaoqidun/gitcz
|
module github.com/xiaoqidun/gitcz
|
||||||
|
|
||||||
go 1.17
|
go 1.18
|
||||||
|
Loading…
x
Reference in New Issue
Block a user