mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
Previously `skillshare check` compared repo-level commit hashes, causing all skills from a registry repo to show "update_available" whenever any commit was pushed — even if the individual skill's files were unchanged. Now each skill records its git tree hash (subdir-level SHA) at install time. During check, a three-tier comparison is used: 1. Fast path: commit hash matches → up_to_date (zero extra cost) 2. Tree hash path: blobless fetch (~150KB) + batch ls-tree → per-skill comparison; unchanged subdirs stay up_to_date 3. Fallback: no tree hash (old installs) → commit comparison (unchanged) Also fixes pterm progress bar printing twice when it auto-stops at 100%.