summaryrefslogtreecommitdiffstats
path: root/local/.bin/git/git-file-size
diff options
context:
space:
mode:
Diffstat (limited to 'local/.bin/git/git-file-size')
-rwxr-xr-xlocal/.bin/git/git-file-size5
1 files changed, 5 insertions, 0 deletions
diff --git a/local/.bin/git/git-file-size b/local/.bin/git/git-file-size
new file mode 100755
index 0000000..0e7d00d
--- /dev/null
+++ b/local/.bin/git/git-file-size
@@ -0,0 +1,5 @@
+#!/bin/sh
+set -eu
+set -o pipefail
+
+git ls-files -z | xargs -0 du -b | sum