File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ func commit(message string) (err error) {
130130 if hasStagingFiles {
131131 username , err := gitconfig .Username ()
132132 email , err := gitconfig .Email ()
133- fmt .Println (Gray ("Preparing commit..." ))
133+ fmt .Println (Gray ("Changes added, Preparing commit..." ))
134134
135135 _ , err = w .Commit (message , & git.CommitOptions {
136136 Author : & object.Signature {
@@ -140,10 +140,11 @@ func commit(message string) (err error) {
140140 },
141141 })
142142 checkErr (err )
143- fmt .Println (Green ("Done!" ))
144- fmt .Println (Magenta ("Happy coding!" ))
143+ lastCommit := "Last commit: " + message
144+ fmt .Println (Gray (lastCommit ))
145+ fmt .Println (Green ("Done" ))
145146 } else {
146- checkErr (errors .New ("no changes added to commit" ))
147+ checkErr (errors .New ("No changes added to commit" ))
147148 }
148149
149150 return
You can’t perform that action at this time.
0 commit comments