Snapshot Sync

by chiahsien
5
4
3
2
1
Score: 50/100

Description

Remote-First Git Sync for Obsidian

Reviews

No reviews yet.

Stats

0
stars
22
downloads
0
forks
17
days
11
days
11
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
21
commits

Latest Version

11 days ago

Changelog

Snapshot Sync 0.1.2

Highlights

  • Safer sync without git stash: local changes stay in the working tree and index while remote updates are applied.
  • Uses git reset --keep to preserve local uncommitted changes when remote changes are non-overlapping.
  • Detects genuine overlapping conflicts and stops without silently discarding local work.
  • Handles remote history rewrites caused by squash and force-with-lease pushes.
  • Improves Obsidian startup performance: Git preflight runs in the background instead of blocking plugin launch.
  • Removes the extra startup remote-branch network check.
  • Adds a 15-second timeout for Git fetch, push, and ls-remote commands.

New Setting

  • Adds Startup sync delay (seconds), defaulting to 5 seconds.
  • A short delay gives Obsidian time to finish launching before the first automatic sync starts.
  • Set to 0 to start automatic sync without delay.

Sync Behavior

  • Sync state is classified as up-to-date, ahead, behind, or diverged.
  • Diverged histories stop for manual resolution instead of silently resetting unpublished local commits.
  • Routine syncs push incrementally; history squash remains time-gated.

Compatibility

  • Existing settings are preserved.
  • Missing Startup sync delay values use the default 5 seconds.