1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-14 11:41:07 +02:00
zsh/Functions/VCS_Info
brian m. carlson 5126096370 github #48/0002: vcs_info git: properly detect bare repositories
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.
2020-02-17 10:03:08 +00:00
..
Backends github #48/0002: vcs_info git: properly detect bare repositories 2020-02-17 10:03:08 +00:00
.distfiles 33047: use git to simplify massively source distribution file selection 2014-08-23 21:01:58 +01:00
vcs_info 44962: vcs_info: Document internal function and variable 2019-12-03 02:56:01 +00:00
VCS_INFO_adjust
VCS_INFO_bydir_detect 44962: vcs_info: Document internal function and variable 2019-12-03 02:56:01 +00:00
VCS_INFO_check_com 30114: VCS_INFO_check_com: Remove a superfluous stat() 2012-01-19 16:57:40 +00:00
VCS_INFO_formats unposted: vcs_info: Add docstrings to the internal functions VCS_INFO_formats and VCS_INFO_set. 2017-12-30 06:14:22 +00:00
VCS_INFO_get_cmd
VCS_INFO_hexdump 39786: vcs_info (hg): Use native hexdump implementation instead of external command. 2016-10-31 18:35:47 +00:00
VCS_INFO_hook 36077: vcs_info: stop exporting everything 2015-08-12 04:31:22 +02:00
vcs_info_hookadd 28960: Add functions to add/remove static hooks. 2011-03-30 21:17:07 +00:00
vcs_info_hookdel 28960: Add functions to add/remove static hooks. 2011-03-30 21:17:07 +00:00
vcs_info_lastmsg 36077: vcs_info: stop exporting everything 2015-08-12 04:31:22 +02:00
VCS_INFO_maxexports 37345: VCS_INFO functions break with setopt no_unset 2015-12-23 01:57:45 +01:00
VCS_INFO_nvcsformats 37347: Remove incorrect local for msgs in VCS info 2015-12-08 12:59:48 +00:00
VCS_INFO_patch2subject 45114: vcs_info quilt: Improve support for svn-style patch headers. 2019-12-22 03:21:03 +00:00
vcs_info_printsys 36077: vcs_info: stop exporting everything 2015-08-12 04:31:22 +02:00
VCS_INFO_quilt 44958: vcs_info quilt: Avoid forks 2019-11-29 20:57:01 +00:00
VCS_INFO_reposub 33277: Fix VCS_INFO_reposub's command expansion 2014-09-29 19:20:11 +02:00
VCS_INFO_set unposted: vcs_info: Add docstrings to the internal functions VCS_INFO_formats and VCS_INFO_set. 2017-12-30 06:14:22 +00:00
VCS_INFO_set-patch-format 43620 (tweaked): vcs_info git: Reverse the order patches are passed to gen-unapplied-string in. 2018-10-08 13:44:40 +00:00
vcs_info_setsys 30461, 30462 (tweaked): add missing local for match, mbegin and mend 2012-05-02 13:09:37 +00:00