Git 2.7 (Nov/Dec 2015) will improve again: To hide refs/secret in all repos, except for one public bit Git config transfer.hideRefs '!refs/secret/not-so-secret' So you can now do: git config -system transfer.hideRefs refs/secret git/config, for example, will override /etc/gitconfig). We take care to apply the matches in reverse-order from how they are fed to us by the config machinery, as that lets our usual "last one wins" config precedence work (and entries in. This patch implements a "negative" hide which causes matches to immediately be marked as unhidden, even if another match would hide it. If you hide a hierarchy of refs using the transfer.hideRefs config, there is no way to later override that config to "unhide" it. (Merged by Junio C Hamano - gitster - in commit 824a0be, ) refs: support negative transfer.hideRefs See commit 2bc31d1, commit cc118a6 () by Jeff King ( peff). Git 2.6 (Q3 2015) will improve that model. (The Gerrit case has already been solved through allowTipSHA1InWant as every Gerrit change has a ref.)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |