fsmonitor: limit monitoring when running git-dag
commitbe9966a124f0c7b1f78417bce0cdb31be6a6e973
authorDaniel Harding <dharding@living180.net>
Fri, 1 Jan 2016 21:08:46 +0000 (1 21:08 +0000)
committerDaniel Harding <dharding@living180.net>
Thu, 7 Jan 2016 15:06:25 +0000 (7 15:06 +0000)
treef419bac2bb61df66e5c75d8d9b9e9a040da2b6d3
parent9c8960e026f3cb389459db3e11a6831ad500b4ad
fsmonitor: limit monitoring when running git-dag

When running git-dag, pass a flag into fsmonitor.instance().start()
which disables monitoring the worktree and the index, causing only
.git/HEAD and the .git/refs directory to be monitored.  This prevents
unnecessary refreshes when changes are made to the worktree or the
index, which do not affect what is displayed by git-dag.

Fixes: #516
Reported-by: Stanislaw Halik <sthalik@misaki.pl>
Signed-off-by: Daniel Harding <dharding@living180.net>
bin/git-dag
cola/app.py
cola/fsmonitor.py