]> gitweb.ps.run Git - ps-cgit/blobdiff - cgitrc.5.txt
ui-repolist: do not return unsigned (negative) value
[ps-cgit] / cgitrc.5.txt
index 6b4efa267a8be44d497c5ec2c115ab597fa5f018..ba77826fd0c23d54bbf990f9251e0b7f27c3a602 100644 (file)
@@ -485,6 +485,10 @@ repo.email-filter::
        Override the default email-filter. Default value: none. See also:
        "enable-filter-overrides". See also: "FILTER API".
 
+repo.enable-blame::
+       A flag which can be used to disable the global setting
+       `enable-blame'. Default value: none.
+
 repo.enable-commit-graph::
        A flag which can be used to disable the global setting
        `enable-commit-graph'. Default value: none.
@@ -775,14 +779,25 @@ through use of git notes. For example, the following command may be used to
 add a signature to a .tar.xz archive:
 
     git notes --ref=refs/notes/signatures/tar.xz add -C "$(
-           gpg --output - --armor --detach-sign cgit-1.1.tar.xz |
-           git hash-object -w --stdin
+       gpg --output - --armor --detach-sign cgit-1.1.tar.xz |
+       git hash-object -w --stdin
     )" v1.1
 
 If it is instead desirable to attach a signature of the underlying .tar, this
 will be linked, as a special case, beside a .tar.* link that does not have its
-own signature.
-
+own signature. For example, a signature of a tarball of the latest tag might
+be added with a similar command:
+
+    tag="$(git describe --abbrev=0)"
+    git notes --ref=refs/notes/signatures/tar add -C "$(
+        git archive --format tar --prefix "cgit-${tag#v}/" "$tag" |
+        gpg --output - --armor --detach-sign |
+        git hash-object -w --stdin
+    )" "$tag"
+
+Since git-archive(1) is expected to produce stable output between versions,
+this allows one to generate a long-term signature of the contents of a given
+tag.
 
 EXAMPLE CGITRC FILE
 -------------------