From 1ca07e979a2056fdd1560c82c2e2f3f10032bc46 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sun, 11 Sep 2022 13:55:31 +0200 Subject: [PATCH] Add versioning information to git-archive tarballs --- .git_archival.txt | 4 ++++ .gitattributes | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .git_archival.txt diff --git a/.git_archival.txt b/.git_archival.txt new file mode 100644 index 000000000..3994ec0a8 --- /dev/null +++ b/.git_archival.txt @@ -0,0 +1,4 @@ +node: $Format:%H$ +node-date: $Format:%cI$ +describe-name: $Format:%(describe:tags=true)$ +ref-names: $Format:%D$ diff --git a/.gitattributes b/.gitattributes index e84d38dad..cd99d9c18 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,4 @@ -.gitattributes export-ignore -.gitignore export-ignore +.git_archival.txt export-subst +.gitattributes export-ignore .github export-ignore +.gitignore export-ignore