commit e68eaba8dba7363e91439878102371e52228c91b from: Stefan Sperling date: Thu Apr 20 15:55:08 2023 UTC sync man pages commit - 47975f11e5334a764d15e2d4fde9f2b90f5eb43e commit + e68eaba8dba7363e91439878102371e52228c91b blob - 68f744ed96e63750c1976a934b6cd627ef237068 blob + 061452c49413ab9cfedd09e69736020d98906165 --- git-repository.5.html +++ git-repository.5.html @@ -214,7 +214,7 @@
March 12, - 2023 OpenBSD 7.2
+ line">April 19, + 2023 OpenBSD 7.3 blob - 9cd858f6064d230ceea256296861327b5c4171a3 blob + a2ec94a3c03a28aba03a89688dcf185681678615 --- got-worktree.5.html +++ got-worktree.5.html @@ -186,7 +186,7 @@
March 12, - 2023 OpenBSD 7.2
+ line">April 19, + 2023 OpenBSD 7.3 blob - 805201f6d37c60bc6304f3991f62f68969a87a69 blob + 56e58272362d6539ea2dbb9f0bbbbb3c57429af0 --- got.1.html +++ got.1.html @@ -2398,9 +2398,6 @@ the merge can be continued once the changes present in the work tree are considered complete. Alternatively, the merge operation may be aborted which will leave the work tree's current branch unmodified.

-

If a merge conflict is resolved in a way which renders all - merged changes into no-op changes, the merge operation cannot continue - and must be aborted.

got merge will refuse to run if certain preconditions are not met. If history of the branch is based on the work tree's current branch, @@ -3036,7 +3033,16 @@ remote "origin" { origin/master

$ got histedit -f
$ got send -f -b master + origin
+

In addition to reviewing the pull request in the web user + interface, Jelmer can fetch the pull request's branch into his local + repository and create a local branch which contains the proposed + changes:

+

+
$ got fetch -R refs/pull/1046/head origin
+
$ got branch -c + refs/remotes/origin/pull/1046/head pr1046

Once Jelmer has accepted the pull request, Stefan can fetch the merged changes, and possibly several other new changes, by running:

@@ -3193,7 +3199,7 @@ remote "origin" {
March 12, - 2023 OpenBSD 7.2
+ line">April 19, + 2023 OpenBSD 7.3 blob - 08ceea0979a34379b324b6c7fe0f588e73c1ffda blob + b6d506d780bf8f4d38c4b317bc6e1d1d211437dd --- got.conf.5.html +++ got.conf.5.html @@ -306,7 +306,7 @@
March 12, - 2023 OpenBSD 7.2
+ line">April 19, + 2023 OpenBSD 7.3 blob - cb7829f57d447f6feff3d1c0f40871a91d55a681 blob + bac78212418b05c1aace7e3e15d9537a1cb05fb6 --- gotadmin.1.html +++ gotadmin.1.html @@ -348,7 +348,7 @@
March 12, - 2023 OpenBSD 7.2
+ line">April 19, + 2023 OpenBSD 7.3 blob - d13829f2719e6433e13c6f6e0b12250919e9004e blob + 7c767e10680d0f18e93a4bf741d3cbfd9b267825 --- gotctl.8.html +++ gotctl.8.html @@ -86,7 +86,7 @@
March 12, - 2023 OpenBSD 7.2
+ line">April 19, + 2023 OpenBSD 7.3 blob - abb355283921f523914ab4420bfd90e3ee3e49be blob + 8e178b0ed8f54f1f9b7f5274dd6a6251fbf37ed8 --- gotd.8.html +++ gotd.8.html @@ -99,7 +99,7 @@
March 12, - 2023 OpenBSD 7.2
+ line">April 19, + 2023 OpenBSD 7.3 blob - 31b22d7e76aabe6d0d438bb33477bbd72a0e5187 blob + fc4a67ffe701f1b57fab426d170f7c0ee409140d --- gotd.conf.5.html +++ gotd.conf.5.html @@ -156,6 +156,53 @@ rw for read-write access. Group names may be matched by prepending a colon (‘:’) to identity. Numeric IDs are also accepted. +
+ {...}
+
The protect directive may be used to protect + branches and tags in a repository from being overwritten by potentially + destructive client-side commands, such as when got send + -f and git push -f are used to change the + history of a branch. +

To build a set of protected branches and tags, multiple + protect directives may be specified per + repository and multiple protect directive + parameters may be specified within curly braces.

+

The available protect parameters are + as follows:

+
+
+ name
+
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. +

If the name does not already begin + with “refs/heads/” it will be looked up in the + “refs/heads/” reference namespace.

+
+
+ namespace namespace
+
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. +

The namespace argument must be + absolute, starting with “refs/”.

+
+
+ namespace namespace
+
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. +

The namespace argument must be + absolute, starting with “refs/”.

+
+
+

The special reference namespaces “refs/got/” and + “refs/remotes/” do not need to be listed in + gotd.conf. These namespaces are always protected + and even attempts to create new references in these namespaces will + always be denied.

+
@@ -180,6 +227,9 @@ repository "src" { permit rw flan_hacker permit rw :developers permit ro anonymous + + protect branch "main" + protect tag namespace "refs/tags/" } # This repository can be accessed via @@ -189,6 +239,11 @@ repository "openbsd/ports" { permit rw :porters permit ro anonymous deny flan_hacker + + protect { + branch "main" + tag namespace "refs/tags/" + } } # Use a larger request timeout value: @@ -210,7 +265,7 @@ connection {
March 12, - 2023 OpenBSD 7.2
+ line">April 19, + 2023 OpenBSD 7.3 blob - 88cbe0ec3d375b49ba34e7332ad8b3815e202f10 blob + b7eab92c9d525fcc5925ba39b5293a06faa9ea4f --- gotsh.1.html +++ gotsh.1.html @@ -154,7 +154,7 @@
March 12, - 2023 OpenBSD 7.2
+ line">April 19, + 2023 OpenBSD 7.3 blob - 014ccaf33a00b34e6ceca7b24a1be9fa9f7227b3 blob + 0fea03d949c3651814c54c6ada07ea30540705df --- gotwebd.8.html +++ gotwebd.8.html @@ -185,7 +185,7 @@
March 12, - 2023 OpenBSD 7.2
+ line">April 19, + 2023 OpenBSD 7.3 blob - c7205a5f0cba57a979a9c9673ef3c80432066d84 blob + f936c4b19d2a0e66c12770857986598c4cb88747 --- gotwebd.conf.5.html +++ gotwebd.conf.5.html @@ -252,7 +252,7 @@ server "localhost-unix" {
March 12, - 2023 OpenBSD 7.2
+ line">April 19, + 2023 OpenBSD 7.3 blob - db4428745a76ba1f2d69ea83ee5120d8c04dca4f blob + 312215a030e63d0a751722f141b12888b242c47a --- tog.1.html +++ tog.1.html @@ -769,7 +769,7 @@
March 12, - 2023 OpenBSD 7.2
+ line">April 19, + 2023 OpenBSD 7.3