rebase-editor icon indicating copy to clipboard operation
rebase-editor copied to clipboard

FR: Implement `break`, `label`, `reset` and `merge`.

Open real-yfprojects opened this issue 2 years ago • 5 comments

These are all the commands available when rebasing (in German):

Befehle:
# p, pick <Commit> = Commit verwenden
# r, reword <Commit> = Commit verwenden, aber Commit-Beschreibung bearbeiten
# e, edit <Commit> = Commit verwenden, aber zum Nachbessern anhalten
# s, squash <Commit> = Commit verwenden, aber mit vorherigem Commit vereinen
# f, fixup <Commit> = wie "squash", aber diese Commit-Beschreibung verwerfen
# x, exec <Commit> = Befehl (Rest der Zeile) mittels Shell ausführen
# b, break = hier anhalten (Rebase später mit 'git rebase --continue' fortsetzen)
# d, drop <Commit> = Commit entfernen
# l, label <Label> = aktuellen HEAD mit Label versehen
# t, reset <Label> = HEAD zu einem Label umsetzen
# m, merge [-C <Commit> | -c <Commit>] <Label> [# <eineZeile>]
# .       Merge-Commit mit der originalen Merge-Commit-Beschreibung erstellen
# .       (oder die eine Zeile, wenn keine originale Merge-Commit-Beschreibung
# .       spezifiziert ist). Benutzen Sie -c <Commit> zum Bearbeiten der
# .       Commit-Beschreibung.

The b, l, t and m keys do not do anything.

Tasks

  • [x] break
  • [ ] label
  • [ ] reset
  • [ ] merge
  • [ ] exec

real-yfprojects avatar Mar 11 '22 13:03 real-yfprojects

Yeah, I've also noticed that b doesn't do you would expect it to.

@sjurba I see that there has been very little activity on the project lately. Is it mostly because of a lack of time and/or interest? Are you open to pull requests provided by us or other people in the community?

rebase-editor is a nice tool, and with this bug fixed it would be even nicer. :pray: :smiley:

perlun avatar Mar 15 '22 12:03 perlun

Hi, Per. Yes, lack of time. I use the tool my self and for what I need it just works. Since I developed it some new commands have been added to git and I have just not gotten around to adding them. I think some of the commands are trival to add, but some might be tricky.

Anyways, I'm more than open to PRs if anyone feels inclined to give it a crack!

sjurba avatar Mar 15 '22 15:03 sjurba

Sounds good @sjurba. I gave this a brief look now, here's my draft (not yet fully functional): https://github.com/sjurba/rebase-editor/pull/30

perlun avatar Mar 16 '22 07:03 perlun

A way to edit the rebase file in one's favourite editor and resume to rebase-editor afterwards won't be that comfortable but will still be better than not having the option to use these commands.

real-yfprojects avatar Mar 23 '22 18:03 real-yfprojects

Break is now supported. Adding the others will be a bigger undertaking.

sjurba avatar Apr 13 '22 15:04 sjurba