Changelists for Git
JetBrains-style changelists for Git in VS Code. Group your working tree changes into named lists, commit one list at a time, and shelve and unshelve whole lists.
What It Does
- Adds a "Changelists" view to the Source Control sidebar. Every changed file sits in a list; files you have not sorted yet stay in the default "Changes" list.
- Move files between lists with drag and drop, the right-click menu in the view, or the right-click menu in Source Control.
- Commit a list with one command. Exactly that list's files are staged and committed, and every other change stays where it was. If other files are already staged, Changelists refuses and tells you which ones, so nothing is committed by accident.
- Lists are remembered per repository. A file leaves its list when you commit it through Changelists. If a file only disappears from the changes (for example
git stash, autostash during a pull, or a commit made elsewhere), it keeps its list for 10 minutes, so it returns to the same list after git stash pop.
- Works with several repositories open and with Windows and POSIX paths, including hundreds of files at once.
Features (Free vs Pro)
| Feature |
Free |
Pro |
| Changelists view with default list |
Included |
Included |
| Named lists |
Up to 3 (plus the default list) |
Unlimited |
| Move files by drag and drop and context menus |
Included |
Included |
| Commit one list, leaving other changes untouched |
Included |
Included |
| Rename and delete lists |
Included |
Included |
| Create a shelf from a list |
Upgrade prompt |
Included |
| Unshelve, delete a shelf, mark a shelf resolved |
Included |
Included |
| Commit message templates per list |
Upgrade prompt |
Included |
Only creating new shelves needs Pro. Shelves you already have can always be unshelved or deleted, also after a Pro license lapses.
Shelving
Shelving saves the list's changes (modified, staged, deleted, new and binary files) as a patch and restores those files to their last commit. Unshelving re-applies the patch with git apply --3way.
- Where shelves are stored: in the extension's global storage folder, for example
%APPDATA%\Code\User\globalStorage\toolsmith-labs.changelists\shelves on Windows and ~/.config/Code/User/globalStorage/toolsmith-labs.changelists/shelves on Linux. Each shelf is a standard Git patch (<id>.patch) with a small record next to it (<id>.json). Shelves therefore survive a crashed window and show up in every workspace that opens the same repository. You can also apply a patch yourself with git apply.
- Safety: the patch is written and checked before any file is touched. If reverting your working tree fails part way, the patch and the shelf are kept, Changelists tries to put your changes back, and the message names the full path of the patch.
- Unsaved edits: Changelists asks to save open edits of the list's files before shelving.
- Limits: files that are staged and also edited further cannot be shelved or committed, because Git would keep two different versions; stage or unstage them fully first. Shelving needs at least one commit in the repository.
- Conflicts: if the repository changed since you shelved, unshelving can end with conflicts. The files then contain conflict markers and appear as merge changes, and the shelf is marked "conflicts" and kept. Resolve and stage the files, then run Changelists: Mark Shelf Resolved to delete the shelf. Until the conflicts are resolved or discarded, unshelving again is refused with a message naming the files.
- Local changes in the way: unshelving refuses when the target files have uncommitted changes, and lists them. Commit, shelve or discard those first.
Commands
changelists.newList (Changelists: New Changelist): Creates a named list.
changelists.renameList (Changelists: Rename Changelist): Renames a list.
changelists.deleteList (Changelists: Delete Changelist): Deletes a list; its files return to the default list.
changelists.moveToList (Changelists: Move to Changelist...): Moves the selected files to a list. Available from the view and from Source Control.
changelists.commitList (Changelists: Commit Changelist): Commits only the files of a list.
changelists.shelveList (Changelists: Shelve Changelist (Pro)): Shelves a list.
changelists.unshelve (Changelists: Unshelve): Restores a shelf.
changelists.resolveShelf (Changelists: Mark Shelf Resolved): Deletes a shelf whose conflicts you have resolved.
changelists.deleteShelf (Changelists: Delete Shelf): Deletes a shelf and its patch.
changelists.setTemplate (Changelists: Set Commit Message Template (Pro)): Sets a message template for a list. Use {list} and {branch} as placeholders.
changelists.refresh (Changelists: Refresh): Re-reads the Git status and the shelves.
changelists.enterLicense (Changelists: Enter License Key): Activates a Pro license key in VS Code SecretStorage.
Settings
changelists.apiBaseUrl (string, default ""): Override the licensing API base URL (must use https://, machine-scoped).
changelists.webBaseUrl (string, default ""): Override the web storefront base URL (must use https://, machine-scoped).
Privacy and Data Handling
| Data |
Where |
Retention |
| List names, file assignments, templates |
Local VS Code workspace storage |
Until you delete them |
| Shelved changes (patch files) and their records |
Local extension global storage (see Shelving) |
Until unshelved or deleted |
| License key, product ID, machine ID hash |
Sent to the licensing API on Pro activation and refresh |
Active license lifetime |
| Telemetry |
None. Changelists collects no usage data. |
Not applicable |
File names, file contents and commit messages never leave your machine. Changelists runs your installed Git directly with argument lists (never through a shell) and uses the Git extension that ships with VS Code to read your changes.
Offline Behaviour
Everything except license activation works fully offline. Paid licenses are verified offline using the bundled Ed25519 public key with a 14-day grace period.
Requirements and Limits
- Needs the built-in Git extension to be enabled and Git 2.25 or newer.
- Not available in untrusted or virtual workspaces, because Git hooks and configuration can run code.
- Lists are per file, not per hunk.
- Committing a list while files outside it are staged is refused. Unstage them first.
- A file that is staged and edited further cannot be committed or shelved through a list (see Shelving).
Pricing
Changelists is free to use. Pro adds unlimited lists, shelving and commit message templates.
- Pro: $4/month or $36/year
- All Access (every Toolsmith Labs extension): $12/month or $99/year
View plans and buy. After purchase, sign in to your account to copy your license key, then run Changelists: Enter License Key.
Support
Report issues or request help at github.com/toolsmith-labs/support. For billing or license questions, email jashambaliya05@gmail.com.
| |