mirror of
https://git.code.sf.net/p/zsh/code
synced 2026-04-18 06:53:35 -04:00
We currently detect Git repositories by finding the top level of the working tree, and if we fail to detect it, assume that we're not in a repository. However, there's a case we don't consider: a bare repository. Let's detect if the user is in a bare repository by checking if gitdir is set, and if so, using that if there is no working tree. We now detect bare Git repositories with vcs_info, as expected.
The Zftp directory contains a set of functions acting as a front end to the zftp command, provided as an add-on module. They allow you to perform FTP tasks from within the shell using as many of the shell's own facilities as possible. For more information, see the zshzftpsys manual page.