Skip to content

Latest commit

 

History

History
36 lines (20 loc) · 1.53 KB

README.md

File metadata and controls

36 lines (20 loc) · 1.53 KB

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.

  • 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