Changes
The changes panel
11 min read
The changes panel is the right side of the window when you're looking at the work in progress, and not at an old commit. It lists each file that changed since the last commit, separated by where the change is (unstaged, staged, conflicted), and ends with the commit box.
This page describes the panel, each file's menu and how the screen keeps up with what happens on disk. How to prepare the commit (stage) is in Staging; how to read each file, in Reading the diff.
The panel shows the uncommitted changes of the active tab's repository: edited, new, deleted, renamed and conflicted files. It's the starting point to see the diff, stage and commit.
- In the graph: click the // WIP row, the first one in the graph. It appears when there are uncommitted changes (or an operation such as a merge or rebase stopped halfway) and shows counters by type of change. Hover over a counter to see, for example, "2 modified files", "1 new file", "1 deleted file", "1 renamed file" or "1 conflicted file".
- With no commit selected, the right panel already shows the changes.
- Shortcut: Ctrl+Shift+M goes back to the changes panel (if another commit was selected) and puts the cursor in the commit message.
| Part | What it shows or does |
|---|---|
| Trash can button | "Discard all changes…": throws away everything that wasn't committed (asks for confirmation; see Discarding changes). It's disabled when nothing has changed. |
| Title | "3 files changed on main", with the current branch in a chip. In detached HEAD, the chip shows "detached HEAD". Without changes: "No files changed on main". |
| Issue bar | When the branch is linked to an issue, it appears here (see Issues). |
| List bar | Order (A↓Z or Z↓A) and the Path or Tree mode (see "File list or tree" below). |
| Operation bar | During a merge, rebase, cherry-pick or revert stopped halfway: "Merge in progress" (or "Rebase in progress", "Cherry-pick in progress", "Revert in progress") with the Continue (disabled while there are conflicts), Skip (doesn't appear in a merge) and Abort buttons. See Operation in progress. |
| File sections | Conflicted, Resolved, Unstaged files, Don't commit and Staged files (table below). |
| Commit box | Summary, description, options and the commit button. See The commit box. |
Each section has a title with the number of files in parentheses. Click the title to collapse or expand the section; from the keyboard, use Enter or Space on the title.
| Section | When it appears | Button on the title | Clicking the file |
|---|---|---|---|
| Conflicted | Only when there are conflicted files (merge, rebase, cherry-pick, revert, stash). | Resolve several… (Resolving several files) | Opens the conflict editor. |
| Resolved | With a stopped operation or conflicted files, when some file of this operation has already been resolved and git still keeps its conflicting versions. | None. Each file has the Reopen button. | Nothing; use Reopen to put the file back in conflict and open the editor. See Reopen an already resolved file. |
| Unstaged files | Always. | Stage all changes (also applies when there are only conflicted files) | Opens the "unstaged" diff (or "new file", for an untracked file). |
| Don't commit | When some changed file is on the "don't commit" list. | None. | Opens the diff. See "Don't commit" list. |
| Staged files | Always. | Unstage all changes | Opens the "staged" diff. |
When a section is empty, it says "No unstaged files." or "No staged files.". With the two main sections collapsed, the commit box stays at the bottom of the panel.
Tip
A file can appear in both sections at the same time: part of its changes is already staged and part isn't. That's normal after staging by hunk or by line. In that file's diff, the Unstaged | Staged picker switches between the two parts.
Each file takes up a row with:
-
Icon for the type of change (hover over it to see the name):
Icon Name Pencil Modified (or Type changed) + Added, Copied or Untracked − Deleted Arrow Renamed Alert Conflicted -
Path: the folder in a lighter tone and the file name highlighted. The tooltip shows the full path; on a renamed file, "old/path → new/path".
-
Badges: LFS for a file stored in Git LFS and sub for a submodule ("Submodule: what changes here is the recorded commit"). See Git LFS and Submodules.
-
Action button, on the right: + ("Stage file") in Unstaged files, − ("Unstage file") in Staged files, + ("Mark as resolved (stage)") in Conflicted and Reopen in Resolved.
Each new file appears on its own in the list, even inside a folder that doesn't exist in git yet.
- Select the // WIP row in the graph.
- Click the file in the Unstaged files or Staged files section.
- The diff opens in the central area, in place of the graph. The file's row stays marked.
- To close it, click the same file again, press Esc with the focus on the diff or use the X ("Close (Esc)") in the corner of the diff.
The file list is a single Tab stop; inside it:
| Key | What it does |
|---|---|
| ↑ ↓, Home, End, PageUp, PageDown | Move between files. |
| Enter or Space | Open the file's diff (the same as clicking). |
| → and ← | In the tree, expand and collapse the folder; ← also goes up to the parent folder. |
| Shift+F10 or the Menu key | Open the file menu. |
| S / U | Stage / unstage the focused file (see Staging shortcuts). |
The buttons inside the rows are left out of the Tab order; the same actions are in the file menu.
The panel is built from git's status, requested with all untracked files listed one by one:
git status --porcelain=v2 -z --untracked-files=all
Opening the panel or clicking a file doesn't change anything in the repository.
- "detached HEAD" in the title: you aren't on any branch. A commit made like this stays outside any branch; see Checkout.
- File in both sections: the commit only takes the part that is in Staged files.
- While an operation of the app itself is running, the panel's actions warn "Wait for the current operation to finish.".
- The choice between Path and Tree and the list order are remembered and apply to all repositories.
- Other worktrees of the same repository with changes get their own // WIP row in the graph: see Each worktree's WIP in the graph.
The file lists (the sections of the changes panel, a commit's file list and the comparison with the working directory) can show each file by its full path or in a folder tree. The tree helps when many files changed in a few folders; it also lets you stage a whole folder at once.
- On the bar right below the panel title: A↓Z (or Z↓A) and Path | Tree.
- Click Tree. The folders appear with an arrow; folders that only have one subfolder become a
single row (for example,
src/app/login). - Click a folder to collapse or expand it.
- Hover over a folder in the Unstaged files section and click the + ("Stage 4 files in this folder") to stage all of them. In Staged files, the − ("Unstage 4 files in this folder") does the opposite.
- Right-click a folder to open "History of folder src/app" (Folder history).
- To go back to the simple list, click Path.
| Option | What it does | Default |
|---|---|---|
| Path | One row per file, with the folder before the name. | On |
| Tree | Files grouped in collapsible folders. | Off |
| A↓Z / Z↓A | Ascending or descending alphabetical order. The tooltip says "Order: A → Z (click to reverse)". | A↓Z |
Nothing: it's only how the list is shown. Staging a folder uses the same command as staging a file, with all the files of that folder in the section (see Staging).
The choice is remembered between sessions and applies to all repositories and to all file lists.
The file menu brings together everything you can do with a file in the list: stage, discard, ignore, stash, blame, history, open in the editor, create a patch and more. The first items change depending on the section the file is in.
- Right-click a file in any file list.
- With the focus on the list: Shift+F10 or the Menu key.
Unstaged files:
| Item | What it does |
|---|---|
| Stage file | Stages the whole file (Staging). |
| Discard changes… | Throws away the file's unstaged changes, with confirmation (Discarding). |
| Ignore › | Submenu with the file, the extension, the folder and .gitignore templates… (Ignoring). |
| Stash this file… | Saves only this file in a stash (Stash). |
| Move to worktree › | Appears when the repository has other worktrees (Moving between worktrees). |
| Don't commit this file / Remove from the "don't commit" list | Puts the file on the "don't commit" list or takes it off ("Don't commit" list). |
Staged files:
| Item | What it does |
|---|---|
| Unstage file | Unstages the file, without touching the disk. |
| Move to worktree › | As above. |
| Don't commit this file / Remove from the "don't commit" list | As above. |
Conflicted: the items to choose one of the versions, open the conflict editor, Open in merge tool, Resolve several conflicted files… and Mark as resolved (stage). Discard, ignore and stash don't appear for a conflicted file. See The conflict editor.
File in a commit's list: Restore file from this commit… (replaces the file on disk with the one from that commit and leaves the result staged; disabled if the commit deleted the file) and, on the current branch's commits, Move to commit… (Moving between commits).
| Item | What it does | When it's disabled or disappears |
|---|---|---|
| File history | Commits that changed the file (File history). | Disabled on an untracked file. |
| File blame | Who changed each line (Blame). | Disabled on an untracked file and on an image (SVG has blame). |
| Bring from another branch or commit… | Replaces the file with the version from another revision (Bring a file). | — |
| History of folder src/app | Commits that touched the file's folder (Folder history). | Disappears for files at the root. |
| Local history of this file… | Automatic copies of the file made by Versora (Local history). | — |
| Your custom commands | Commands with where: [file] (Custom commands). | They only appear if they exist. |
| Open in diff tool | Opens the diff in the configured external tool (git mergetool and git difftool). | Disabled on an untracked file; disappears on a conflicted file. |
| Validate CI… | Validates the .gitlab-ci.yml (and the files it includes) (Pipelines). | Only appears on the CI file. |
| Open file | Opens the file in the Windows default program for that type. | Disabled on a deleted file (outside a commit's list). |
| Open in external editor | Opens it in the editor chosen in Preferences (Editor and tools). | As above. |
| Show in file explorer | Opens File Explorer with the file selected. | As above. |
| Copy file path | Copies the path relative to the repository root. | — |
| Copy Versora link to the file | Copies a versora:// link to the file (versora:// links). On a new file, "Copy Versora link to the file (not committed yet)" appears, disabled. | — |
| Create patch from file changes… | Saves the file's diff in a .patch (Creating and applying patches). | — |
| Track with LFS › and Lock file (LFS) / Unlock file (LFS) | Git LFS items (Git LFS). | Only with Git LFS installed; they don't appear on a conflicted file. |
| Delete file… | Deletes the file from disk, with confirmation (Discarding). | Only in Unstaged files, for a file that exists and isn't conflicted. |
Each item follows the rules of its own function: discards and file deletion come back with Ctrl+Z; stage and unstage don't (do the reverse operation). The exception is Mark as resolved (stage) on a conflicted file, which goes into Ctrl+Z, as do Use the … version… and Resolve several conflicted files…. See each item's page.
The graph's // WIP row also has a menu, with the actions that apply to all the changes at once.
- Right-click the // WIP row, at the top of the graph.
| Item | What it does |
|---|---|
| Stage all changes | The same as Stage all changes in the panel (Staging). |
| Stash changes… | Saves the changes in a stash (Stash). |
| Snapshot (save without removing anything)… | Saves a copy in a stash without removing anything from the directory (Stash). |
| Stash only the staged changes… | Stash of the staged changes only; disabled with an empty stage (Stash). |
| Apply patch from clipboard… | Opens the Apply patch window (Creating and applying patches). |
| Move the changes to worktree › | Appears when there are other worktrees (Moving between worktrees). |
| Discard all changes… | Throws away everything that wasn't committed, with confirmation (Discarding). |
You don't need to tell Versora when you edit a file in the editor, run a command in the terminal or switch branches outside the app: it watches the repository folder and refreshes the panel and the graph on its own.
- Only the active tab's repository is watched. When you switch tabs, Versora starts watching the new tab's repository and refreshes the screen.
- Bursts become a single refresh. After a change, the app waits a moment (about 350 ms) for
others and refreshes at most once per second. A build or an
npm installthat touches thousands of files doesn't freeze the screen. - Noisy folders are left out: changes inside
node_modules,target,dist,build,out,.next,.nuxt,.gradle,__pycache__,.venv,venv,.idea,.vsand.cachedon't trigger a refresh (they're usually in.gitignore). - Inside
.git, only the changes that alter what the screen shows count: HEAD, the refs, the index (the stage), the stash and the markers of a merge, rebase, cherry-pick and revert in progress. - During an operation of Versora itself, the screen is refreshed when the operation finishes, and not in the middle of it.
- When Windows delivers too many notifications at once (a checkout of thousands of files), Versora refreshes anyway.
If you want to force the repository to be read again:
- The Refresh (F5) button on the toolbar.
- Shortcut: F5 or Ctrl+R (Shift+F5, Ctrl+F5 and Ctrl+Shift+R also work).
- Palette (Ctrl+P): "Refresh".
- "Folder not found: C:\Projetos\loja": the repository folder was deleted or moved. Open the repository again from its new location.
- "Couldn't watch the folder: …": Windows refused the watch. The screen doesn't refresh on its own; use F5 after changing something outside the app.
- An open diff follows the file: if it changes on disk, the diff is read again. If the change disappears (for example, you undid the edit in the editor), the diff closes.
- In a repository inside WSL, the watching is done from inside the distro; see Repositories in WSL.