mirror of
https://github.com/xiaoqidun/gitcz.git
synced 2024-12-26 22:01:04 +08:00
feat(替换函数): 使用新函数替换废弃函数
This commit is contained in:
parent
85015449ca
commit
8aad2018ff
3
gitcz.go
3
gitcz.go
@ -5,7 +5,6 @@ import (
|
||||
"bytes"
|
||||
"flag"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strconv"
|
||||
@ -116,7 +115,7 @@ func NewLine() {
|
||||
}
|
||||
|
||||
func GitCommit(commit string, amend bool, sign bool) (err error) {
|
||||
tempFile, err := ioutil.TempFile("", "git_commit_")
|
||||
tempFile, err := os.CreateTemp("", "git_commit_")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user