A Vim plugin to reverse the order commits are displayed during a Git interactive rebase.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
ftplugin
images
.gitignore
CHANGELOG.md Extract line reverse code into a function Jan 4, 2019
LICENSE.txt
README.md

README.md

Interactive Rebase Reverse Vim

A Vim plugin to reverse the order commits are displayed during a Git interactive rebase.

This plugin is based on my difficultly with mentally shifting from git log (where the most recent commit appears at the top) to git rebase --interactive (where the most recent commit appears at the bottom).

For more information, see my post on why the Git Interactive Rebase Order is Wrong.

Installation

Install using your favorite plugin manager.

vim-plug

  • Add Plug 'salcode/vim-interactive-rebase-reverse' to .vimrc
  • Run :PlugInstall

Screenshots

Default Interactive Git Rebase Order

For git log (on the left), the newest commit is on the top but for git rebase --interactive (on the right), the newest commit is on the bottom.

Screenshot of Git Log and Git Rebase Interactive showing in one case the newest commit is at the top and in the other case the newest commit is at the bottom.

Interactive Git Rebase Order with Plugin

The newest commit is on the top for both git log and git rebase --interactive because this plugin modifies the order for the interactive rebase.

Screenshot of Git Log and Git Rebase Interactive with Plugin showing in both cases the newest commit is at the top.

Author

Sal Ferrarello / @salcode