@@ -63,6 +63,25 @@ It is recommended that patches be given names of the form
6363` YYYYMMDD-{commit}-{brief_description}.patch ` , where ` {commit} ` is the short
6464hash of the git-annex source code commit against which the patch was made.
6565
66+ New patches should carry a
67+ [ DEP-3] ( https://dep-team.pages.debian.net/deps/dep3/ ) header at the top of
68+ the file (` git apply ` ignores the preamble), including SPDX tags so the
69+ patch remains [ REUSE] ( https://reuse.software/ ) compliant on its own:
70+
71+ ```
72+ Description: <one-line summary>
73+ <if needed - longer explanation: why this patch exists in datalad/git-annex,
74+ what it works around, and who benefits>
75+ Origin: vendor, https://github.com/datalad/git-annex/commit/<sha>
76+ Author: Your Name <you@example.org>
77+ Forwarded: not-needed # or: <URL of upstream submission>
78+ Last-Update: YYYY-MM-DD
79+ SPDX-FileCopyrightText: YEAR Your Name <you@example.org>
80+ SPDX-License-Identifier: AGPL-3.0-or-later
81+ ---
82+ diff --git a/...
83+ ```
84+
6685Once a patch PR is merged into ` master ` , the patch will be applied to all
6786git-annex builds on all platforms, including release builds. Patches in
6887` patches/ ` are applied in lexicographic filename order. If a patch in
@@ -71,6 +90,27 @@ the file from `patches/`, and the patch will be skipped. If a patch fails to
7190apply, an issue will be automatically created in this repository, and the build
7291will fail.
7392
93+ ## Licensing
94+
95+ Files in the ` master ` branch (this branch) are
96+ [ REUSE] ( https://reuse.software/ ) compliant — see [ ` REUSE.toml ` ] ( ./REUSE.toml )
97+ and [ ` LICENSES/ ` ] ( ./LICENSES/ ) for the authoritative, machine-readable
98+ copyright and license information. In short:
99+
100+ - Repository scaffolding (CI workflows, test drivers, docs, README) is
101+ licensed ** MIT** © DataLad Team.
102+ - Files under [ ` patches/ ` ] ( ./patches/ ) modify upstream
103+ [ git-annex] ( https://git-annex.branchable.com ) source and are therefore
104+ licensed ** AGPL-3.0-or-later** . Each patch carries a
105+ [ DEP-3] ( https://dep-team.pages.debian.net/deps/dep3/ ) header documenting
106+ its description, origin, author, and upstream-forwarding status.
107+
108+ The
109+ [ ` upstream/master ` ] ( https://github.com/datalad/git-annex/tree/upstream/master )
110+ branch is an unmodified mirror of git-annex upstream and follows the
111+ licensing of that source tree (` AGPL-3.0-or-later ` as a whole, with
112+ component-level licenses recorded in upstream's own ` COPYRIGHT ` file).
113+
74114## Status
75115
76116[ ![ Update mirror] ( https://github.com/datalad/git-annex/actions/workflows/update-mirror.yml/badge.svg )] ( https://github.com/datalad/git-annex/actions/workflows/update-mirror.yml )
0 commit comments