A maintained fork of srydh/vscode-stgit. This fork is a drop-in replacement.
The main purpose of this extension is to make 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.
Install StGit Revived from the VS Code Marketplace.
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.
While the StGit window is open, it follows the repository of the active file, including files in submodules.
Tip
To enter StGit, press Ctrl-C Ctrl-I or run the "StGit: Open..."
command. In the StGit window, press h 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.
Important
You must uninstall the original samuelrydh.stgit extension before installing this one. Both contribute the same command and language identifiers, and VSCode has no way to resolve the conflict.
Git history entries use the effective format.pretty Git configuration. Custom format: and tformat: values and named pretty.<name> aliases are supported. Multiline output is flattened to one line, and terminal colors are omitted. If no reusable one-line format is configured, the extension uses %h %s.
Starting any Extension Development Host debug configuration builds both the extension and the React webview before starting the background watch task. Subsequent webview JS/CSS rebuilds automatically reload the open StGit panel in the development host, preserving its selection and scroll position. For extension-host code changes, reload the Extension Development Host window to load the newly compiled code. Run npm run compile for a one-off build or npm run watch outside debugging; restart an older watch process after changing the build scripts. npm run test:unit includes a DOM test of the compiled webview; npm test runs the VS Code extension-host suite when its test executable is available.
Closing the StGit tab while editing a commit message closes the message editor and discards the message; cancel the message before closing to get a confirmation.
The latest release notes are available here.
StGit Revived is licensed under the GNU General Public License, version 3 or later.
It is a fork of srydh/vscode-stgit by Samuel Rydh, taken at upstream commit bddfe6a. The code up to that commit is also licensed under the original BSD 2-Clause license. Changes made since the fork are licensed only under the GPL.
