Commit Diff


commit - b5a9c48e45a3b875063c98d667eabb4e243a8b75
commit + 900f6c594f51f205ae6ff48b443e9520f8fea29a
blob - 50e0dd82cd72677cbe351f1088f2643126122517
blob + e66740ed421065807cb4a8329b19992dea7256b3
--- git-repository.5.html
+++ git-repository.5.html
@@ -215,7 +215,7 @@
 </section>
 </main>
 <div class="foot" role="doc-pagefooter" aria-label="Manual footer
-  line"><span class="foot-left"></span><span class="foot-date">April 22,
+  line"><span class="foot-left"></span><span class="foot-date">May 14,
   2025</span> <span class="foot-os">OpenBSD 7.7</span></div>
 </body>
 </html>
blob - 6c71739282b60bc0b3631fb7915dd626687cc8aa
blob + 13134ba8b091725ad06be28d047a477d1d5c489e
--- gitwrapper.1.html
+++ gitwrapper.1.html
@@ -142,7 +142,7 @@
 </section>
 </main>
 <div class="foot" role="doc-pagefooter" aria-label="Manual footer
-  line"><span class="foot-left"></span><span class="foot-date">April 22,
+  line"><span class="foot-left"></span><span class="foot-date">May 14,
   2025</span> <span class="foot-os">OpenBSD 7.7</span></div>
 </body>
 </html>
blob - 5d88a220f172d44fef4448d9543af7dd2a350305
blob + 1b4b1da9a75b613e8654739959a0be524ab1ec6b
--- got-worktree.5.html
+++ got-worktree.5.html
@@ -187,7 +187,7 @@
 </section>
 </main>
 <div class="foot" role="doc-pagefooter" aria-label="Manual footer
-  line"><span class="foot-left"></span><span class="foot-date">April 22,
+  line"><span class="foot-left"></span><span class="foot-date">May 14,
   2025</span> <span class="foot-os">OpenBSD 7.7</span></div>
 </body>
 </html>
blob - 1c061b37bfb88a39b9173edc19c735aa4956aa39
blob + 2e78c20f19cbeb90e01810aa720882e6f65d22f3
--- got.1.html
+++ got.1.html
@@ -3659,7 +3659,7 @@ remote &quot;origin&quot; {
 </section>
 </main>
 <div class="foot" role="doc-pagefooter" aria-label="Manual footer
-  line"><span class="foot-left"></span><span class="foot-date">April 22,
+  line"><span class="foot-left"></span><span class="foot-date">May 14,
   2025</span> <span class="foot-os">OpenBSD 7.7</span></div>
 </body>
 </html>
blob - 01c141e915d81b3a3e3458ade3476712a2c38640
blob + a1ad851a9f25022a25954b66bce56222709995c5
--- got.conf.5.html
+++ got.conf.5.html
@@ -325,7 +325,7 @@
 </section>
 </main>
 <div class="foot" role="doc-pagefooter" aria-label="Manual footer
-  line"><span class="foot-left"></span><span class="foot-date">April 22,
+  line"><span class="foot-left"></span><span class="foot-date">May 14,
   2025</span> <span class="foot-os">OpenBSD 7.7</span></div>
 </body>
 </html>
blob - d6ac463f48a47207fff2a634ffa76745e56f8436
blob + 299d17c19be52c4f25eae29240ed670141f96458
--- gotadmin.1.html
+++ gotadmin.1.html
@@ -439,7 +439,7 @@
 </section>
 </main>
 <div class="foot" role="doc-pagefooter" aria-label="Manual footer
-  line"><span class="foot-left"></span><span class="foot-date">April 22,
+  line"><span class="foot-left"></span><span class="foot-date">May 14,
   2025</span> <span class="foot-os">OpenBSD 7.7</span></div>
 </body>
 </html>
blob - a08e8d85eb04e13db66c17007696b09401b8d0fe
blob + 21e782fe6e4a43b139176c28e1027efa0bc3a4e4
--- gotctl.8.html
+++ gotctl.8.html
@@ -113,7 +113,7 @@
 </section>
 </main>
 <div class="foot" role="doc-pagefooter" aria-label="Manual footer
-  line"><span class="foot-left"></span><span class="foot-date">April 22,
+  line"><span class="foot-left"></span><span class="foot-date">May 14,
   2025</span> <span class="foot-os">OpenBSD 7.7</span></div>
 </body>
 </html>
blob - 2a2e66577c192eef4968869e22d20f85a9973d0d
blob + 473e2aa66dc70dd2d6f581c7204e10b2d657033e
--- gotd-secrets.conf.5.html
+++ gotd-secrets.conf.5.html
@@ -112,7 +112,7 @@ repository &quot;openbsd/src&quot; {
 </section>
 </main>
 <div class="foot" role="doc-pagefooter" aria-label="Manual footer
-  line"><span class="foot-left"></span><span class="foot-date">April 22,
+  line"><span class="foot-left"></span><span class="foot-date">May 14,
   2025</span> <span class="foot-os">OpenBSD 7.7</span></div>
 </body>
 </html>
blob - bd5a32dbb3a7047484c8b303c04317edcb257fc3
blob + bf8e2f3acf792c40430227ba93516307b78beb62
--- gotd.8.html
+++ gotd.8.html
@@ -150,7 +150,7 @@
 </section>
 </main>
 <div class="foot" role="doc-pagefooter" aria-label="Manual footer
-  line"><span class="foot-left"></span><span class="foot-date">April 22,
+  line"><span class="foot-left"></span><span class="foot-date">May 14,
   2025</span> <span class="foot-os">OpenBSD 7.7</span></div>
 </body>
 </html>
blob - 145badb241270ccf4b3191b112de41fe47135988
blob + 21b29c79c59c10c2ac1087dc5010561b9e78eddd
--- gotd.conf.5.html
+++ gotd.conf.5.html
@@ -499,7 +499,7 @@ connection {
 </section>
 </main>
 <div class="foot" role="doc-pagefooter" aria-label="Manual footer
-  line"><span class="foot-left"></span><span class="foot-date">April 22,
+  line"><span class="foot-left"></span><span class="foot-date">May 14,
   2025</span> <span class="foot-os">OpenBSD 7.7</span></div>
 </body>
 </html>
blob - fe77c71b732a2dc08f3d4f12861823feec144e46
blob + 3e1198cd4cfcd5f04c75c8f3a67f3df48c22e0c9
--- gotsh.1.html
+++ gotsh.1.html
@@ -157,7 +157,7 @@
 </section>
 </main>
 <div class="foot" role="doc-pagefooter" aria-label="Manual footer
-  line"><span class="foot-left"></span><span class="foot-date">April 22,
+  line"><span class="foot-left"></span><span class="foot-date">May 14,
   2025</span> <span class="foot-os">OpenBSD 7.7</span></div>
 </body>
 </html>
blob - ae9d8dd4e23144df7c27cff91656b1d53b6aa07f
blob + 59f57dff5aaa04c4e1f43cd5b0e461a15b1b0a00
--- gotsys.1.html
+++ gotsys.1.html
@@ -168,7 +168,7 @@
 </section>
 </main>
 <div class="foot" role="doc-pagefooter" aria-label="Manual footer
-  line"><span class="foot-left"></span><span class="foot-date">April 22,
+  line"><span class="foot-left"></span><span class="foot-date">May 14,
   2025</span> <span class="foot-os">OpenBSD 7.7</span></div>
 </body>
 </html>
blob - 1533d4ae7d0064b07c5ebef2554084c377d4c227
blob + 6e8dc12be763fd59d1800e423876e640d296c40a
--- gotsys.conf.5.html
+++ gotsys.conf.5.html
@@ -212,6 +212,53 @@
         password, cannot use an SSH public key, and can only be granted
         read-only access.</p>
   </dd>
+  <dt id="protect"><a class="permalink" href="#protect"><code class="Ic">protect</code></a>
+    {<var class="Ar">...</var>}</dt>
+  <dd>The <code class="Cm">protect</code> directive may be used to protect
+      branches and tags in a repository from being overwritten by potentially
+      destructive client-side commands, such as when <code class="Cm">got send
+      -f</code> and <code class="Cm">git push -f</code> are used to change the
+      history of a branch.
+    <p class="Pp">To build a set of protected branches and tags, multiple
+        <code class="Ic">protect</code> directives may be specified per
+        repository and multiple <code class="Ic">protect</code> directive
+        parameters may be specified within curly braces.</p>
+    <p class="Pp">The available <code class="Cm">protect</code> parameters are
+        as follows:</p>
+    <dl class="Bl-tag">
+      <dt id="branch"><a class="permalink" href="#branch"><code class="Ic">branch</code></a>
+        <var class="Ar">name</var></dt>
+      <dd>Protect the named branch. The branch may be created if it does not
+          exist yet. Attempts to delete the branch or change its history will be
+          denied.
+        <p class="Pp">If the <var class="Ar">name</var> does not already begin
+            with &#x201C;refs/heads/&#x201D; it will be looked up in the
+            &#x201C;refs/heads/&#x201D; reference namespace.</p>
+      </dd>
+      <dt id="branch~2"><a class="permalink" href="#branch~2"><code class="Ic">branch</code></a>
+        <code class="Ic">namespace</code> <var class="Ar">namespace</var></dt>
+      <dd>Protect the given reference namespace, assuming that references in
+          this namespace represent branches. New branches may be created in the
+          namespace. Attempts to change the history of branches or delete them
+          will be denied.
+        <p class="Pp">The <var class="Ar">namespace</var> argument must be
+            absolute, starting with &#x201C;refs/&#x201D;.</p>
+      </dd>
+      <dt id="tag"><a class="permalink" href="#tag"><code class="Ic">tag</code></a>
+        <code class="Ic">namespace</code> <var class="Ar">namespace</var></dt>
+      <dd>Protect the given reference namespace, assuming that references in
+          this namespace represent tags. New tags may be created in the
+          namespace. Attempts to change or delete existing tags will be denied.
+        <p class="Pp">The <var class="Ar">namespace</var> argument must be
+            absolute, starting with &#x201C;refs/&#x201D;.</p>
+      </dd>
+    </dl>
+    <p class="Pp">The special reference namespaces &#x201C;refs/got/&#x201D; and
+        &#x201C;refs/remotes/&#x201D; do not need to be listed in
+        <code class="Nm">gotsys.conf</code>. These namespaces are always
+        protected and even attempts to create new references in these namespaces
+        will always be denied.</p>
+  </dd>
 </dl>
 </section>
 <section class="Sh">
@@ -265,7 +312,7 @@ repository &quot;secret&quot; {
 </section>
 </main>
 <div class="foot" role="doc-pagefooter" aria-label="Manual footer
-  line"><span class="foot-left"></span><span class="foot-date">April 22,
+  line"><span class="foot-left"></span><span class="foot-date">May 14,
   2025</span> <span class="foot-os">OpenBSD 7.7</span></div>
 </body>
 </html>
blob - c9a90f7e25f17dd40dfeaae3616a67d26209819c
blob + db6c33ac30c43ae56891d598bc68c5c3749a3a91
--- gotsysctl.8.html
+++ gotsysctl.8.html
@@ -93,7 +93,7 @@
 </section>
 </main>
 <div class="foot" role="doc-pagefooter" aria-label="Manual footer
-  line"><span class="foot-left"></span><span class="foot-date">April 22,
+  line"><span class="foot-left"></span><span class="foot-date">May 14,
   2025</span> <span class="foot-os">OpenBSD 7.7</span></div>
 </body>
 </html>
blob - 58d5196966920f2cf37b9acc646db59272109f54
blob + b4f636efa5825cb6821d105554d7105cd5aec740
--- gotsysd.8.html
+++ gotsysd.8.html
@@ -136,7 +136,7 @@
 </section>
 </main>
 <div class="foot" role="doc-pagefooter" aria-label="Manual footer
-  line"><span class="foot-left"></span><span class="foot-date">April 22,
+  line"><span class="foot-left"></span><span class="foot-date">May 14,
   2025</span> <span class="foot-os">OpenBSD 7.7</span></div>
 </body>
 </html>
blob - 715d674fb1a703eca7c924e6ff8a2556d92f597e
blob + 88bc0490a7f7903f479b6baac89135a2acd618cf
--- gotsysd.conf.5.html
+++ gotsysd.conf.5.html
@@ -133,7 +133,7 @@ uid range 5000 5999</pre>
 </section>
 </main>
 <div class="foot" role="doc-pagefooter" aria-label="Manual footer
-  line"><span class="foot-left"></span><span class="foot-date">April 22,
+  line"><span class="foot-left"></span><span class="foot-date">May 14,
   2025</span> <span class="foot-os">OpenBSD 7.7</span></div>
 </body>
 </html>
blob - 94fd997f9780754d96106acf354e7baedf2f3ab8
blob + 667543c5441dc17fb3ee26f184d700ba149ed1de
--- gotwebd.8.html
+++ gotwebd.8.html
@@ -190,7 +190,7 @@ server &quot;example.com&quot; {
 </section>
 </main>
 <div class="foot" role="doc-pagefooter" aria-label="Manual footer
-  line"><span class="foot-left"></span><span class="foot-date">April 22,
+  line"><span class="foot-left"></span><span class="foot-date">May 14,
   2025</span> <span class="foot-os">OpenBSD 7.7</span></div>
 </body>
 </html>
blob - 629185abf19409d7972d8b30d28f1c4b537c9410
blob + e30831157132b853fb7917b093f3075444214d98
--- gotwebd.conf.5.html
+++ gotwebd.conf.5.html
@@ -265,7 +265,7 @@ server &quot;localhost&quot; {
 </section>
 </main>
 <div class="foot" role="doc-pagefooter" aria-label="Manual footer
-  line"><span class="foot-left"></span><span class="foot-date">April 22,
+  line"><span class="foot-left"></span><span class="foot-date">May 14,
   2025</span> <span class="foot-os">OpenBSD 7.7</span></div>
 </body>
 </html>
blob - 88f654eeb0ae03cf19858cba35814e0f8e8a83ba
blob + a26b38891137a3d5b3583e62589e9b4a3804f042
--- tog.1.html
+++ tog.1.html
@@ -887,7 +887,7 @@
 </section>
 </main>
 <div class="foot" role="doc-pagefooter" aria-label="Manual footer
-  line"><span class="foot-left"></span><span class="foot-date">April 22,
+  line"><span class="foot-left"></span><span class="foot-date">May 14,
   2025</span> <span class="foot-os">OpenBSD 7.7</span></div>
 </body>
 </html>