vim-patch:4d2c4b9: runtime(doc): document gitrebase filetype (#32881)

closes: vim/vim#16883

4d2c4b90fb

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2025-03-14 08:27:02 +08:00
committed by GitHub
parent 4f6196e91d
commit 6d40fd1dbc

View File

@@ -603,6 +603,24 @@ One command, :DiffGitCached, is provided to show a diff of the current commit
in the preview window. It is equivalent to calling "git diff --cached" plus
any arguments given to the command.
GIT REBASE *ft-gitrebase-plugin*
The gitrebase filetype defines the following buffer-local commands, to help
with interactive `git rebase`: >
:Drop " to discard this commit
:Edit " to stop for editing this commit
:Fixup " to squash (but discard the message) into the previous one
:Pick " to pick this commit (the cursor is on)
:Reword " to pick this commit, but change the commit message
:Squash " to squash this commit into the previous one
In addition, the following comamnd can be used to cycle between the different
possibilities: >
:Cycle " to cycle between the previous commands
<
For details, see `git-rebase --help`.
GO *ft-go-plugin*