summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-05-04 14:07:29 +0300
committerLars Wirzenius <liw@liw.fi>2019-05-04 14:07:29 +0300
commit41e0dfb85e8d69cdf063ce363ce69d6f0c7ec5fc (patch)
tree8340a7a850127aeb479e2e9fc528bc38ad50881f
parentf8aedc57611d1a37aabb72a4afa8690e0a648a12 (diff)
downloadsaga-poc-41e0dfb85e8d69cdf063ce363ce69d6f0c7ec5fc.tar.gz
Add: script to get modification date for a file from git
-rwxr-xr-xdocid6
1 files changed, 6 insertions, 0 deletions
diff --git a/docid b/docid
new file mode 100755
index 0000000..ce3612a
--- /dev/null
+++ b/docid
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+set -eu
+
+git show "$1" | sed -n '/^Date: */s///p'
+