A polished version from the RFC. Now you can do
git rebase -i -10 -> git rebase -i HEAD~10
git rebase -e XYZ -> send you to commit XYZ for editing
Nguyễn Thái Ngọc Duy (3):
rev-parse: support OPT_NUMBER_CALLBACK in --parseopt
rebase: accept -<number> as another way of saying HEAD~<number>
rebase: new convenient option to edit a single commit
Documentation/git-rebase.txt | 7 +++++++
builtin/rev-parse.c | 9 +++++++--
git-rebase--interactive.sh | 17 ++++++++++++++---
git-rebase.sh | 19 +++++++++++++++++++
t/t3400-rebase.sh | 6 ++++++
5 files changed, 53 insertions(+), 5 deletions(-)
--
1.9.0.40.gaa8c3ea