mirror of
				https://github.com/xiaoqidun/gitcz.git
				synced 2025-10-31 23:49:36 +08:00 
			
		
		
		
	feat(替换函数): 使用新函数替换废弃函数
This commit is contained in:
		
							
								
								
									
										3
									
								
								gitcz.go
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								gitcz.go
									
									
									
									
									
								
							| @@ -5,7 +5,6 @@ import ( | |||||||
| 	"bytes" | 	"bytes" | ||||||
| 	"flag" | 	"flag" | ||||||
| 	"fmt" | 	"fmt" | ||||||
| 	"io/ioutil" |  | ||||||
| 	"os" | 	"os" | ||||||
| 	"os/exec" | 	"os/exec" | ||||||
| 	"strconv" | 	"strconv" | ||||||
| @@ -116,7 +115,7 @@ func NewLine() { | |||||||
| } | } | ||||||
|  |  | ||||||
| func GitCommit(commit string, amend bool, sign bool) (err error) { | 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 { | 	if err != nil { | ||||||
| 		return | 		return | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user