def dispatch(self, event):
if event.is_directory:<EOL><INDENT>return<EOL><DEDENT>paths = []<EOL>if has_attribute(event, '<STR_LIT>'):<EOL><INDENT>paths.append(os.path.realpath(<EOL>unicode_paths.decode(event.dest_path)))<EOL><DEDENT>if event.src_path:<EOL><INDENT>paths.append(os.path.realpath(<EOL>unicode_paths.decode(event.src_path)))<EOL><DEDENT>paths = [p for p in paths<EOL>if not p.startswith(os.path.realpath(self.vcs.repository_dir()))<EOL>and not self.vcs.path_is_ignored(p)]<EOL>if len(paths) > <NUM_LIT:0>:<EOL><INDENT>super(VcsEventHandler, self).dispatch(event)<EOL><DEDENT>
Only dispatch if the event does not correspond to an ignored file.
        Args:
            event (watchdog.events.FileSystemEvent)