mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-07 04:34:35 +08:00
We use the Git dir for a few purposes: * Direct filesystem access. * Passing to Git as --git-dir=. * Embedding in fugitive:// URLs. * Referring to the repository without otherwise using it. As a start to teasing these apart, introduce s:GitDir() to handle the first 2 cases, s:DirUrlPrefix() for the 3rd case, and keep using s:Dir() as a generic reference.