Staging Lines and Hunks
Gitfox supports file staging from the worktree outline and finer-grained staging from the diff view.
Stage files
Select files in the worktree outline and use Worktree → Stage Selected. If the selected files are already staged, use Worktree → Unstage Selected.
You can also use Worktree → Toggle Stage to stage or unstage the current status set.
Stage from the diff
Open a changed file in the diff view. Use the Unstaged and Staged segmented control to choose which side of the index you are reviewing.
When you are viewing Unstaged changes, Gitfox can stage changes into the index or discard them from the worktree. When you are viewing Staged changes, Gitfox can unstage changes back to the worktree.
Stage a hunk
Each changed block has a gutter button next to it. Click the gutter button for a changed block to apply the main action for that side:
- In Unstaged, the gutter button stages that changed block.
- In Staged, the gutter button unstages that changed block.
You can also right-click a changed block and choose Stage Hunk from the context menu. In the staged view, use Unstage Hunk.
Stage selected lines
Select the lines you want inside a changed block. Gitfox shows a selection gutter button for the selected range. Click it to stage or unstage just those selected lines.
You can also right-click the selection and choose Stage Selected Lines from the context menu. In the staged view, use Unstage Selected Lines.
The same context menu also offers Discard Selected Lines and Discard Hunk while you are viewing unstaged changes.
Use the Diff menu
You can use Diff → Stage to stage the currently selected change while viewing unstaged changes. Use Diff → Unstage / Discard to move the selected change the other way: it unstages from the staged view and discards from the unstaged view.
Use Diff → Show Staged and Diff → Show Unstaged to switch the diff between staged and unstaged content.