<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gitblit &#8211; 编程技术记录</title>
	<atom:link href="https://blog.z6z8.cn/tag/gitblit/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.z6z8.cn</link>
	<description>世界你好!</description>
	<lastBuildDate>Tue, 04 Feb 2020 14:26:39 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>gitblit : 仓库权限 mutable, specified 和 effective 的区别</title>
		<link>https://blog.z6z8.cn/2020/02/04/gitblit-%e4%bb%93%e5%ba%93%e6%9d%83%e9%99%90-mutable-specified-%e5%92%8c-effective-%e7%9a%84%e5%8c%ba%e5%88%ab/</link>
		
		<dc:creator><![CDATA[holdsky]]></dc:creator>
		<pubDate>Tue, 04 Feb 2020 14:26:39 +0000</pubDate>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[安全运维]]></category>
		<category><![CDATA[gitblit]]></category>
		<guid isPermaLink="false">http://blog.z6z8.cn/?p=781</guid>

					<description><![CDATA[仓库权限只能由仓库的所有者维护（所有者可以是多个用户）。 Mutable：拥有可以通过控制面板更改的权限 Sp [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>仓库权限只能由仓库的所有者维护（所有者可以是多个用户）。 </p>
<p>Mutable：拥有可以通过控制面板更改的权限<br />
Specified：Mutable + 所有者<br />
Effective：Specified +正则表达式，管理员等</p>
<p>Repo permissions can only be maintained by an owner of the repo. If you are not the owner, it will appear to let you change the permissions, but actually fail silently</p>
<p>支持上述说法的<a href="https://www.programcreek.com/java-api-examples/?code=warpfork%2Fgitblit%2Fgitblit-master%2Fsrc%2Fmain%2Fjava%2Fcom%2Fgitblit%2Fwicket%2Fpanels%2FRegistrantPermissionsPanel.java" title="代码片段">代码片段</a></p>
<pre><code class="language-java">public class RegistrantPermissionsPanel extends BasePanel {

    private static final long serialVersionUID = 1L;

    public enum Show {
        specified, mutable, effective;

        public boolean show(RegistrantAccessPermission ap) {
            switch (this) {
            case specified:
                return ap.mutable || ap.isOwner();
            case mutable:
                return ap.mutable;
            case effective:
                return true;
            default:
                return true;
            }
        }
    }

    private Show activeState = Show.mutable;
</code></pre>
<p>参考<br />
1、<a href="https://issue.life/questions/34595235">https://issue.life/questions/34595235</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Gitblit权限类型</title>
		<link>https://blog.z6z8.cn/2020/01/03/gitblit%e6%9d%83%e9%99%90%e7%b1%bb%e5%9e%8b/</link>
		
		<dc:creator><![CDATA[holdsky]]></dc:creator>
		<pubDate>Fri, 03 Jan 2020 13:53:44 +0000</pubDate>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[安全运维]]></category>
		<category><![CDATA[gitblit]]></category>
		<guid isPermaLink="false">http://blog.z6z8.cn/?p=753</guid>

					<description><![CDATA[主要是这张图，看懂就懂 权限定义： V ，可以使用浏览器查看、订阅RSS、zip打包下载 R ，具有V的所有权 [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>主要是这张图，看懂就懂<br />
<img decoding="async" src="/wp-content/uploads/2020/01/gitblit_permissions_matrix.png" alt="" /></p>
<p>权限定义：</p>
<ul>
<li>V ，可以使用浏览器查看、订阅RSS、zip打包下载</li>
<li>R ，具有V的所有权限，还具有复制（克隆）远程仓库到本地的权限</li>
<li>RW，具有R的所有权限，还具有推送到远程仓库的权限</li>
<li>RWC，具有RW的所有权限，还具有创建远程分支的权限</li>
<li>RWD，具有RWC的所有权限，还具有删除远程分支的权限</li>
<li>RW+ ，具有RWD的所有权限，还具有回退远程分支的权限</li>
</ul>
<p>其他:</p>
<ul>
<li>admin ，拥有所有权限（这毋庸置疑）</li>
<li>owner，可以创建、编辑、重命名、删除、fork个人仓库</li>
<li>认证用户，可以创建个人仓库、fork个人仓库</li>
</ul>
<p>参考http://www.gitblit.com/administration.html</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
