notify: ignore single-level ref name changes by default
commit7d30ff584742fd5df4d9dcdd67ca76809194b50f
authorKyle J. McKay <mackyle@gmail.com>
Fri, 9 Feb 2018 17:42:52 +0000 (9 09:42 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 9 Feb 2018 17:42:52 +0000 (9 09:42 -0800)
tree7d5538b3d891263826834813f7464f26fa347baa
parentd26c5b1f67af8a4fa28569e086b4248d8c6445fe
notify: ignore single-level ref name changes by default

When using linked working trees with a Girocco repository (or even,
gasp, a non-bare repository), "single-level" refs may end up being
created in the repository such as "refs/stash".

These "single-level" refs are almost always meant to be local and
although a mirror clone will indeed fetch such refs, it's notable
that even a "mirror" push will not push them.

Changes to such refs are not generally something that should generate
any kind of notification.

Therefore ignore changes to any such "single-level" refs when
presented to the Girocco notification machinery unless the new
$Girocco::Config::notify_single_level preference has been explicitly
set to a true value.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Girocco/Config.pm
taskd/taskd.pl