

You can navigate through a fugitive tree buffer just like you would using Vim’s native file explorer (or the NERD tree). When fugitive creates a buffer representing a tree object, you can press the a key to toggle between the git show and git ls-tree views.
#Gedit github code#
But you can get more information in the shell by running git ls-tree SHA - this includes the SHA code for every object referenced by that tree. Again, this looks just like what you see when you run git show SHA in the shell. If you run :Gedit SHA, passing the id for a tree object, then fugitive will open a buffer containing a textual representation of that tree. press on a diff summary line to diff the specified file before and after that commit.press on a reference to a tree to open that tree.press on a reference to a parent to open that commit object.Depending on where your cursor is positioned, pressing the key can open a new buffer containing another git object. This looks just like the what you see when you run git show SHA in the shell, but fugitive makes the buffer interactive in a number of ways. If you run :Gedit SHA, passing in the id for a commit object, then fugitive will open a buffer containing a textual representation of that commit. This could be a blob, tree, commit or tag. When you run :Gedit SHA it will open a buffer containing a textual representation of the corresponding git object. tags - refer to a particular commit by nameĮvery git object is identified by a SHA code.commits - can reference a tree and one or more parent commits.trees - correspond to a directory on the filesystem, representing a list of blobs and trees.

