Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spurious rebuilds in watch mode due to change in .git/index.lock #62

Open
jimrandomh opened this issue Oct 9, 2023 · 0 comments
Open

Comments

@jimrandomh
Copy link

Some git operations take a lock in the .git directory, by doing operations on .git/index.lock, without changing anything else. In particular, git diff --cached --shortstat does this (and is run automatically by my shell prompt, so quite often). When this happens, Estrella picks up .git/index.lock as a change and triggers a rebuild:

[DEBUG] fsevent (raw) 'moved' '.git/index.lock' {
  path: '[MYPROJECTDIR]/.git/index.lock',
  flags: 71936,
  event: 'moved',
  type: 'file',
  changes: { inode: false, finder: false, access: false, xattrs: false }
}
[DEBUG] fsevent (derived) move .git/index -> .git/index.lock
[DEBUG] fsevent (raw) 'moved' '.git/index' {
  path: '[MYPROJECTDIR]/.git/index',
  flags: 67584,
  event: 'moved',
  type: 'file',
  changes: { inode: false, finder: false, access: false, xattrs: false }
}
[DEBUG] fsevent (raw) 'moved' '.git/index' {
  path: '[MYPROJECTDIR]/.git/index',
  flags: 67584,
  event: 'moved',
  type: 'file',
  changes: { inode: false, finder: false, access: false, xattrs: false }
}
[DEBUG] fsevent (derived) move .git/index -> .git/index
1 file changed: .git/index
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

No branches or pull requests

1 participant