You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A file beside the last commit.⇧⌘D, the button at the end of the tab strip (on a file git
says is changed) or Compare with Last Commit in the palette shows the file in two columns: what the
last commit keeps of it on the left (it cannot be changed), the file itself on the right, with
the lines that differ in colour (red taken away, green added, blue changed, and in a changed line the
words that differ). A side with fewer lines has a hatched gap, so the same lines stand at the same
height, and the two scroll together, down and across. The right side is the file's own editor: type,
undo and save as ever. The header names the commit, counts the changes (1 of 5, or Renamed, same text for a file that only moved), and has the arrows
for the change before and after (⌥F5, ⇧⌥F5) and a button that closes it, as Esc does. Where
there is nothing to lay out so (a binary file, one outside a git repository, too many lines) it says
why. The program has the calls compare and compare-base for it (docs/calls.md).
The colour of a change crosses from one side to the other between them, in a curve where the two
sides have different numbers of lines, and a thin line marks the place on the side without its lines.
Fold what did not change, and take a change back. Beside the last commit the long stretches
both sides have the same are folded on both sides alike, three lines kept either side of a change and N unchanged lines at the end of the line each folds from, so that the two stay as tall as each other.
The arrows in the gutter or ⌘⌥] open a stretch on both sides, as does a caret that goes into one
with Find or Go to Line; the button in the header, ⌃⌥] and ⌃⌥[ show all lines and fold them again.
A chevron at the first line of a change or ⌃⇧⌫ takes it back: the lines as the commit has them
replace it, as one edit that ⌘Z undoes, and the line break at the end of the text comes out as the
commit's does.
A panel of the changed files. The sidebar has a third panel beside Files and Search, Changes
(⇧⌘G): the files git says are changed, and, below them, those it does not keep, each with its
icon, its name, its folder and its letter. A press on one shows it beside the last commit (a file
taken away has nothing on the right, which cannot be changed; a renamed one is read under its old
name; one git does not keep has nothing on the left), and the keys stay in the panel: the arrows go
from file to file, ⏎ goes into the editor. A file the panel opened that you did nothing in is
closed as the next comes, so that going through fifty files leaves no fifty tabs. In a narrow
pane the panel is a drawer that closes on the file. Compare with Last Commit is also in the menus
of the editor, a tab and a file of the tree.