mirror of
https://github.com/xiaoqidun/gitcz.git
synced 2024-12-27 06:01:05 +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"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strconv"
|
||||
@ -98,7 +97,7 @@ func main() {
|
||||
czCommit.Closes = InputCloses()
|
||||
commit := GenerateCommit(czCommit)
|
||||
if err := GitCommit(commit, *amend); err != nil {
|
||||
log.Println(err)
|
||||
fmt.Println(err)
|
||||
}
|
||||
}
|
||||
|
||||
@ -221,6 +220,7 @@ func InputCloses() *string {
|
||||
NewLine()
|
||||
return &text
|
||||
}
|
||||
NewLine()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user