Skip to content

10sr/git-walktree-el

Repository files navigation

Build Status MELPA MELPA Stable

git-walktree.el

Browse Git tree and blob objects

ss.png

What is This?

git-walktree is a Git ls-tree browser. It has following features:

  • Browse tree (and blob) objects of arbitrary revisions without checking them out to working directory
    • Go up and down tree objects
    • Visit blob objects
    • Switch to parent and child revisions
  • Checkout (dump) tree or blob objects to current working directory

Usage and Keybinds

M-x git-walktree to open git-walktree buffer. Prompt user for revision to show.

  • When current buffer is visiting a file and it exists in the revision, open blob buffer for that file
  • Otherwise, open tree buffer for default-directory

In git-walktree buffers, following keybinds are defined:

  • ^ Go up to parent tree object
  • P Move to parent revision
  • N Move to child revision
  • C Checkout current blob or tree object to working directory
  • G Move to another revision (ask user)

Additionally, in tree object buffer:

  • ENTER Visit tree or blob object at point

License

This software is released under GPL version 3 or (at your option) any later version.

See LICENSE for details.