diff --git a/AUTHORS.rst b/AUTHORS.rst index 8b1070bb6..8952c6c4d 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -145,3 +145,4 @@ Contributors - Emil Velikov - Linnea Gräf - Raphael Schlarb +- Matthias Schoettle diff --git a/docs/scripts.rst b/docs/scripts.rst index 829546cd2..851846ff8 100644 --- a/docs/scripts.rst +++ b/docs/scripts.rst @@ -1,5 +1,6 @@ .. SPDX-FileCopyrightText: 2022 Nico Rikken + SPDX-FileCopyrightText: 2025 Matthias Schoettle SPDX-License-Identifier: CC-BY-SA-4.0 @@ -58,6 +59,22 @@ This output is convenient for use in larger scripts. .. SPDX-SnippetEnd +Year of first commit while following renames +==================== + +If you want to follow file renames in the Git history, you can use the `--follow` argument. +This requires you to pass the file to `git log`. + +.. SPDX-SnippetBegin +.. SPDX-Snippet-License-Identifier: CC0-1.0 + +.. code-block:: console + + $ git log --follow --date="format:%Y" --format="format:%cd" -- docs/scripts.rst | tail -n 1 + 2022 + +.. SPDX-SnippetEnd + ******* Authors *******