Skip to content

v1.10.0

Choose a tag to compare

@h13 h13 released this 01 Mar 10:11
· 30 commits to main since this release

Changes

Refactoring

  • Eliminate global return values: __autoreload_conf_files now returns file list via stdout instead of the __autoreload_discovered_files global variable. Callers capture output in local variables.
  • Extract __autoreload_is_disabled predicate: Consistent with is_debug, is_quiet, cleanup_enabled pattern.
  • Replace pipe with command substitution in __autoreload_key to avoid unnecessary subprocess.

Performance

  • Merge two stat forks into one: __autoreload_run_check now gets mtimes for tracked files and the conf.d directory in a single batch stat call, reducing fork count per prompt.

Bug Fix

  • Race condition fallback: When a file vanishes between test -f and stat (causing count mismatch), the check now falls back to per-file stat instead of silently skipping changes.

Tests

  • Add test for config.fish modification detection (not just creation).
  • Add test for batch stat fallback path using mocked __autoreload_mtime.
  • 123 tests passing.

Documentation

  • Document fish_user_paths cross-shell side effect in README limitations.