add directory listing for git and hg (used by file browser)