Git uses atomic writes (temp file + rename) which changes the inode. fs.watch on a file stops working after the inode changes. Now watches the directory containing HEAD and filters for HEAD changes.
Git uses atomic writes (temp file + rename) which changes the inode. fs.watch on a file stops working after the inode changes. Now watches the directory containing HEAD and filters for HEAD changes.