diff options
author | Koni Marti <koni.marti@gmail.com> | 2024-01-31 16:49:28 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-01-31 16:54:31 +0100 |
commit | b285b894c3de7299452e860fc060b673af279261 (patch) | |
tree | d3f834db15ffe749708d734c0b6cd0645de7aabf /lib/pama/revctrl | |
parent | f16b33f752bbc3086d08ba8fde034de48ab1c6d6 (diff) | |
download | aerc-b285b894c3de7299452e860fc060b673af279261.tar.gz |
commands: rename patch remove to patch drop
Rename the :patch remove command to :patch drop to better express the
this operation is the counter-part to :patch apply.
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib/pama/revctrl')
-rw-r--r-- | lib/pama/revctrl/git.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pama/revctrl/git.go b/lib/pama/revctrl/git.go index 7be9de58..2a35754e 100644 --- a/lib/pama/revctrl/git.go +++ b/lib/pama/revctrl/git.go @@ -68,10 +68,10 @@ func (g git) Date(commit string) string { return s } -func (g git) Remove(commit string) error { +func (g git) Drop(commit string) error { _, exitcode, err := g.do("rebase", "--onto", commit+"^", commit) if exitcode > 0 { - return fmt.Errorf("failed to remove commit %s", commit) + return fmt.Errorf("failed to drop commit %s", commit) } return err } |