Skip to content

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

License

Notifications You must be signed in to change notification settings

salcode/vim-interactive-rebase-reverse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published