:Glog isn't that exciting

This commit is contained in:
Tim Pope 2019-08-03 20:27:20 -04:00
parent bd70719f54
commit 15fe543508

View File

@ -5,7 +5,7 @@ Git wrapper of all time. Check out these features:
View any blob, tree, commit, or tag in the repository with `:Gedit` (and View any blob, tree, commit, or tag in the repository with `:Gedit` (and
`:Gsplit`, `:Gvsplit`, `:Gtabedit`, ...). Edit a file in the index and `:Gsplit`, `:Gvsplit`, `:Gtabedit`, ...). Edit a file in the index and
write to it to stage the changes. Use `:Gdiff` to bring up the staged write to it to stage the changes. Use `:Gdiffsplit` to bring up the staged
version of the file side by side with the working tree version and use version of the file side by side with the working tree version and use
Vim's diff handling capabilities to stage a subset of the file's Vim's diff handling capabilities to stage a subset of the file's
changes. changes.
@ -27,7 +27,7 @@ the buffer.
Use `:Ggrep` to search the work tree (or any arbitrary commit) with Use `:Ggrep` to search the work tree (or any arbitrary commit) with
`git grep`, skipping over that which is not tracked in the repository. `git grep`, skipping over that which is not tracked in the repository.
`:Glog` loads all previous revisions of a file into the quickfix list so `:Glog` loads all previous revisions of a file into the quickfix list so
you can iterate over them and watch the file evolve! you can iterate over them and watch the file evolve.
`:Gread` is a variant of `git checkout -- filename` that operates on the `:Gread` is a variant of `git checkout -- filename` that operates on the
buffer rather than the filename. This means you can use `u` to undo it buffer rather than the filename. This means you can use `u` to undo it
@ -37,7 +37,7 @@ making it like `git add` when called from a work tree file and like
`git checkout` when called from the index or a blob in history. `git checkout` when called from the index or a blob in history.
Use `:Gbrowse` to open the current file on the web front-end of your favorite Use `:Gbrowse` to open the current file on the web front-end of your favorite
hosting provider, with optional line range (try it in visual mode!). Plugins hosting provider, with optional line range (try it in visual mode). Plugins
are available for popular providers such as [GitHub][rhubarb.vim], are available for popular providers such as [GitHub][rhubarb.vim],
[GitLab][fugitive-gitlab.vim], [Bitbucket][fubitive.vim], and [GitLab][fugitive-gitlab.vim], [Bitbucket][fubitive.vim], and
[Gitee][fugitive-gitee.vim]. [Gitee][fugitive-gitee.vim].
@ -48,7 +48,7 @@ are available for popular providers such as [GitHub][rhubarb.vim],
[fugitive-gitee.vim]: https://github.com/linuxsuren/fugitive-gitee.vim [fugitive-gitee.vim]: https://github.com/linuxsuren/fugitive-gitee.vim
Add `%{FugitiveStatusline()}` to `'statusline'` to get an indicator Add `%{FugitiveStatusline()}` to `'statusline'` to get an indicator
with the current branch in (surprise!) your statusline. with the current branch in your statusline.
Last but not least, there's `:Git` for running any arbitrary command, Last but not least, there's `:Git` for running any arbitrary command,
and `Git!` to open the output of a command in a temp file. and `Git!` to open the output of a command in a temp file.