aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-12-20 17:16:19 +0100
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-12-20 17:16:19 +0100
commit14cf5ea1473411c436728b5464043336322a767b (patch)
treeb11079bfade2944bb8eca1437853af417352f3ae
parent17aeebf82b466f3190adf4fe07a82ea684b48b39 (diff)
test git-archive variable substitution
-rw-r--r--.gitattributes1
-rw-r--r--hash.sh3
2 files changed, 4 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index 7799c58..9c6b849 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1 +1,2 @@
examples/data/uzbl/forms/bbs.archlinux.org whitespace=-trailing-space
+hash.sh export-subst
diff --git a/hash.sh b/hash.sh
new file mode 100644
index 0000000..e936313
--- /dev/null
+++ b/hash.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+# script to determine git hash of current source tree
+FROM_ARCHIVE=$Format:%H$ # set when running git --archive <hash/tag> \ No newline at end of file