Skip to content
Versora

Manual

Worktrees

Each worktree's WIP in the graph

3 min read

On this page

With several worktrees open, it's easy to forget that another folder has work waiting to be committed. The graph solves that: each other worktree of the repository that has uncommitted changes gets a // WIP row right above the commit it's on, linked to that commit.

The tab's own row is still the usual WIP row, at the top of the graph. The other worktrees' rows are similar and show, besides the "// WIP":

  • in the BRANCH / TAG column, a dashed label with the worktree icon and the folder's name;
  • the file counters, as in the tab's WIP row;
  • "on ‹branch›" (or "on detached HEAD ‹sha›");
  • "‹operation› in progress", when that worktree is in the middle of a rebase, merge, cherry-pick or revert.

The row's tooltip says "Uncommitted changes in the worktree ‹folder›. Double-click to open."

Use another worktree's WIP row

Where to find it

  • In the graph of any of the repository's tabs, above the commit the other worktree is on.
  • The row only shows up when the worktree has uncommitted changes or an operation stopped midway. Worktrees whose folder is missing don't show up.
  • The worktree's commit has to be in the graph. If it's hidden by a filter or hasn't been loaded yet (older than the loaded commits), the row doesn't show up.

Step by step

  1. Click the row to select it. The right panel shows:
    • the worktree's name and path;
    • "on ‹branch›", the counters and the operation in progress, if any;
    • the Open worktree, Open the terminal in this worktree, Bring the changes over here…, Send the changes from here to there… and Remove this worktree… buttons;
    • the list of changed files ("N changed files"), with each one's status letter.
  2. Double-click the row to open the worktree in a tab (or activate its tab).
  3. Right-click the row to open the worktree's menu: Open worktree, Open the terminal in this worktree, Bring the changes over here…, Send the changes from here to there…, Prepare (.worktreeinclude and setup)…, Lock worktree… (or Unlock worktree), Remove this worktree… and Remove worktree and delete branch ‹branch›….

The panel's footer reminds you: "Double-click the WIP row in the graph to open this worktree in a tab."

When the row is updated

The app's file watcher only follows the active tab's folder. The state of the other worktrees is read:

  • when the graph opens;
  • when the repository changes;
  • when the Versora window gets focus back;
  • every 15 seconds, with the window in focus.

That's why a change made just now in another worktree may take a few seconds to show up.

What Versora does in git

Only reads. For each other worktree, the app checks the status (as git status does) and counts the files by status. Nothing is changed in any folder.

How to undo

There's nothing to undo: the row only shows information. The actions in the panel and the menu each have their own undo, described on the action's page.

Caveats and messages

  • The Bring the changes over here… and Send the changes from here to there… buttons are disabled when there are no changes on the side they would come from.
  • Selecting another worktree's WIP row isn't selecting a commit: the commit actions (cherry-pick, reset, create branch) don't apply to it.
  • Preferences › Worktrees › Worktree WIP in the graph, the "Show a WIP row for each worktree" checkbox (on by default). When it's off, the app stops reading the state of the other worktrees: the graph shows only the tab's own WIP row, and the WORKTREES section's ●N marker stops being updated.
  • The administrator can hide or lock the Worktrees page in Preferences (the worktrees id in the preferences_hidden and preferences_locked keys). See Policy keys.

See also