-
Notifications
You must be signed in to change notification settings - Fork 15
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
Not triggered for git checkout
#28
Comments
@michalrus that's interesting - when you do |
Yes, they are. Here’s a test script which you can run on your machine (it will create and run in a temporary directory (L5): #!/bin/sh
set -o xtrace
cd "$(mktemp -d)" || exit 1
git init
echo 'some content' >a.txt
cat a.txt
git add .
git commit --no-gpg-sign -m 'Commit 1'
sos . -p '\.txt$' -c : </dev/stdin &
sosPid=$!
echo
sleep 2
echo
echo 'Will modify a.txt manually in 3 seconds…'
sleep 3
echo 'some more content' >>a.txt
md5sum a.txt
echo
sleep 2
echo 'Will `git checkout a.txt` in 3 seconds…'
sleep 3
git checkout a.txt
md5sum a.txt
echo
sleep 2
echo 'Probably `sos` was not triggered by the checkout; killing it.'
kill -INT $sosPid It’s output on my machine:
|
↑ posted haskell-fswatch/hfsnotify#72 |
I’m using the latest HEAD, 85d4008.
I’m first modifying Main.hs 3 times in Emacs, and then switch to some other terminal and do
git checkout src/
and:The text was updated successfully, but these errors were encountered: