The main purpose of this extension is making it easy to modify, amend, reorder, squash or split commits during development with VSCode.
This extension provides a frontend to StGit, which is an external command line tool for managing patch series in the form of Git commits. Refer to the StGit homepage for more details about StGit.
The functionality of this extension is heavily inspired by a corresponding Emacs mode for StGit, originally written by David Kågedal.
The StGit patch series is displayed in a window. StGit and Git operations, bound to various keyboard shortcuts, allow the series to be reworked as desired.
The extension also provides an Emacs-like diff mode, which among other things allows individual hunks to be applied, staged or split into smaller hunks.
Hint: To enter StGit, press
Ctrl-C Ctrl-I
or run the "StGit: Open...
" command. In theStGit
window, pressh
to list all available StGit operations.
This extension requires StGit to be installed (the executable is called stg
). The tool is available in most distributions (e.g. through "brew install stgit
" on macOS). It can also be downloaded from GitHub here.
The StGit extension can be used together with the popular Vim mode for VsCode, but there are currently a few key mapping conflicts for the StGit editor.
The latest release notes are available here.