From bb3d51ded055ae85815c3cc3a4d577ce1c710906 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 29 Aug 2012 21:40:03 +0200 Subject: [PATCH] Update the git-archive export options The .gitattributes and .gitignore files do not need to be present in packaged sources, as they are for people using the Git repository. People who download tarballs usually don't reimport into Git -- they should just download the actual repositories. Meanwhile, the .tag file is quite useful. Instead of making Git extract to the useless SHA-1 of the $n string, ask git-archive to store the SHA-1 of the commit being packaged. Change-Id: Id5a9cf70038f4feac1c1be78389f9a34973116c8 Reviewed-by: Oswald Buddenhagen --- .gitattributes | 3 +++ .tag | 1 + 2 files changed, 4 insertions(+) create mode 100644 .gitattributes create mode 100644 .tag diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..a96f8f5 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +.tag export-subst +.gitignore export-ignore +.gitattributes export-ignore diff --git a/.tag b/.tag new file mode 100644 index 0000000..6828f88 --- /dev/null +++ b/.tag @@ -0,0 +1 @@ +$Format:%H$