Diff
Diff lets you see what changes have been made in your Arkain before committing to your linked Git account.
How to use Diff
Clicking a file in the Unstaged files or Staged files list in the Git Sidebar will open the Diff tool. You can view the changes in the source code in the editor.

Note If you open the [Git] tab and there is only a [Register repository] button, you need to connect the repository first. See how to connect on Import Github Repos page.
The editor area

You can compare the source code before the change (left) and the source code after the change (right).
In the pre-change source code, lines of code that were deleted are highlighted in red and marked with a '-' next to the line number. The after-change source code shows the lines of code that were added with a green highlight and a '+' next to the line number.
Also, the code that was actually changed is highlighted darker.

The button area
The buttons area in the top right corner of the screen provides 4 functions.

Open file Opens the Diff Tool's source file editor for the file you are currently viewing.
Previous change, Next change Moves the cursor to the previous, next change of the current cursor in the source code area after a change.
Toggle collapse unchanged regions Unchanged source code areas are hidden. If the unchanged source code area is small, it may not be hidden. Click the button one more time to see the full source code again.
Change the way the editor area is viewed You can change the placement of the source code before changes and the source code after changes. Click the
Splitbutton to change to a left-to-right orientation, or theInlinebutton to change to a top-to-bottom orientation.
Editing in the Diff Tool
When the Diff Tool is opened from an unstaged (Working Tree) file, you can directly edit the source code in the after-change (right) panel.
Edits made in the Diff Tool are reflected in the original file in real time, and the file can be saved with the standard save shortcut (Ctrl+S / Cmd+S). The unsaved state is synchronized with the original file's editor tab.
Note
Editing is only available for Working Tree diffs. Staged file diffs (Index) remain read-only.
If the file size exceeds the allowed limit, editing will be disabled.
Reverting changes by chunk
Each changed chunk in the diff has a revert button in the gutter (to the left of the line numbers).
Clicking it reverts only that chunk back to the last commit state, without affecting other changes in the file. This is available in both Split and Inline view modes.
Last updated