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

fsmonitor: only enable it in non-bare repositories #942

Commits on May 3, 2021

  1. fsmonitor: only enable it in non-bare repositories

    The entire point of the FSMonitor is to monitor the worktree changes in
    a more efficient manner than `lstat()`ing all worktree files every time
    we refresh the index.
    
    But if there is no worktree, FSMonitor has nothing to monitor.
    
    So let's ignore if an FSMonitor is configured (e.g. in `~/.gitconfig`)
    and we're running in a repository without worktree.
    
    Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
    dscho committed May 3, 2021
    Configuration menu
    Copy the full SHA
    95333bb View commit details
    Browse the repository at this point in the history