sdeditpreview
Chapters

4 / 9 · Applies to v0.1.3

Git and folder trust

What trusting a folder means, reviewing changes, staging, committing, and discarding.

Trust a folder#

Some Git settings can run programs on your machine, so sdedit runs no Git command until you trust the folder.

Explorer showing Git is disabled until trusted with a Trust button, and Git: Untrusted in the status bar
Before trusting a folder (macOS)
  1. Make sure it is a folder whose contents you can vouch for.
  2. Press Trust… in Explorer or Git: Untrusted in the status bar.
  3. Read the confirmation and approve it.

Trust is remembered. Settings → Trusted Folders lists folders and revokes trust. Even in trusted folders, Git runs with core.fsmonitor disabled.

Review changes#

Explorer marks changed files. Parent folders get a ●, so you can find changes without expanding them.

Open Git Changes from the toolbar or the branch name in the status bar. Pick files from the status-badged list, switch between Working Tree and Staged diffs in Unified or Side by Side view with inline highlights and previous/next change navigation, or use Compare Files for any two files.

The editor also shows added, modified, and deleted markers beside line numbers; click a marker to revert that hunk (undoable with Cmd/Ctrl+Z).

Stage, commit, discard#

  • Use Stage File / Unstage File per file, or Stage All / Unstage All for all changes inside the workspace.
  • Enter a message and Commit. Staged changes are committed. If something outside the opened folder is staged, the commit is refused.
  • Discard reverts unstaged changes. Discarding an untracked file deletes it permanently, without using the trash. Check the target in the confirmation.

Git limitations#

  • Run git in a terminal to push, pull, switch branches, or merge.
  • Commits time out after 30 seconds. Use a terminal for slow hooks or anything that needs terminal input.
  • Staging individual lines and a dedicated merge conflict view are not available.

See current limitations for other missing features.

Report a mistake in this manual