Skip to content

Optionally watch filesystem events to update git status#14

Open
OleJoik wants to merge 3 commits intorefractalize:mainfrom
OleJoik:fs-events
Open

Optionally watch filesystem events to update git status#14
OleJoik wants to merge 3 commits intorefractalize:mainfrom
OleJoik:fs-events

Conversation

@OleJoik
Copy link
Copy Markdown

@OleJoik OleJoik commented Feb 8, 2025

Added a config flag to enable updating git status on file system changes, by default turned off

watch_for_changes = false, -- enable to update status on file system changes

Appears to play well with oils similar config flag.

@refractalize
Copy link
Copy Markdown
Owner

I like it, but it doesn't seem to pick up changes to the git status alone. For e.g. if I turn on watch_for_changes in both oil and oil-git-status, then:

  1. touch asdf - then the new file is automatically detected by oil, correct.
  2. git add asdf - the file's status should be picked up, but it's not detected, not correct.
  3. touch asdf2 - the new file is detected AND the asdf file's status is now detected, correct but late.

It's as though we need to watch for changes in the .git directory, not the working copy. Could that be addressed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants