mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02:00
allow rewording old commits
This commit is contained in:
parent
ee15202207
commit
0dfd02c42d
9 changed files with 61 additions and 71 deletions
|
@ -24,9 +24,9 @@ func NewCommitCommands(
|
|||
}
|
||||
}
|
||||
|
||||
// RewordLastCommit renames the topmost commit with the given name
|
||||
func (self *CommitCommands) RewordLastCommit(name string) error {
|
||||
return self.cmd.New("git commit --allow-empty --amend --only -m " + self.cmd.Quote(name)).Run()
|
||||
// RewordLastCommit rewords the topmost commit with the given message
|
||||
func (self *CommitCommands) RewordLastCommit(message string) error {
|
||||
return self.cmd.New("git commit --allow-empty --amend --only -m " + self.cmd.Quote(message)).Run()
|
||||
}
|
||||
|
||||
// ResetToCommit reset to commit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue