feat(canola-git): emit cache update event and keep raw path statuses #53
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/canola-collection!53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/canola-git-update"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Advanced canola-git recipes had no git-specific update hook, and the cache only retained the aggregated first-level status data needed for the built-in column. That made it awkward to react to git refreshes or inspect raw per-path porcelain state for custom recipes.
Solution
Emit a
CanolaGitUpdateuser autocmd after each canola-git cache refresh, with a small payload containing the refreshed directory, repo root, and refresh reason. Expand_cache[dir]to retain raw per-path status data alongside the existing aggregated status table, keepget_status()behavior unchanged, and document concise recipes for the new event and advanced cache inspection.