From 6d40fd1dbc4e4f28d3487e12c48a1250e6c2d039 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 14 Mar 2025 08:27:02 +0800 Subject: 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 --- runtime/doc/filetype.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'runtime/doc') diff --git a/runtime/doc/filetype.txt b/runtime/doc/filetype.txt index c04367d1ad..56fbd5c2a0 100644 --- 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* -- cgit