commit 6d40fd1dbc4e4f28d3487e12c48a1250e6c2d039
parent 4f6196e91d23f17e6b25ea7356d5bbc5b87d95b6
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri, 14 Mar 2025 08:27:02 +0800
vim-patch:4d2c4b9: runtime(doc): document gitrebase filetype (#32881)
closes: vim/vim#16883
https://github.com/vim/vim/commit/4d2c4b90fb0603c9cc53aa33c43c5840c91cb80e
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat:
1 file changed, 18 insertions(+), 0 deletions(-)
diff --git a/runtime/doc/filetype.txt b/runtime/doc/filetype.txt
@@ -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*