Open up specific git revisions of a file.
demo.mp4
require("digit").setup({
default_view = "tab", -- "replace"|"split"|"vsplit"|"tab"
})
:DigitOpen <rev> [view]
Note:
<rev>
does not need to specify a file, in which case the current buffer's file will be opened
:DigitOpen HEAD~2 vsplit
- opens up the current file as it was 2 commits ago in a vertical split
:DigitOpen a1b2c3:foo/bar/baz.md
- opens up specific file
<repo_root>/foo/bar/baz.md
as it was in commita1b2c3
- opens up specific file