aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2019-12-15 22:27:00 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2019-12-15 22:27:00 -0800
commit8c79c1ef47f34050904766c7e1238da8bec768a5 (patch)
treebc83741003318dfd9cbd6c136bb7d4a4583d0db4
parentlocal/update*: ensure correct handling for add/del branch/tags (diff)
downloadgithooks-8c79c1ef47f34050904766c7e1238da8bec768a5.tar.gz
githooks-8c79c1ef47f34050904766c7e1238da8bec768a5.tar.bz2
githooks-8c79c1ef47f34050904766c7e1238da8bec768a5.zip
label-files: make it easier to label files with repo
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--label-files.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/label-files.sh b/label-files.sh
new file mode 100644
index 0000000..5eced78
--- /dev/null
+++ b/label-files.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+for f in $(git grep -L -e '# gentoo-infra:') ; do p=$( git ls-files --full-name $f) ; s="# gentoo-infra: infra/githooks.git:${f}" ; sed -i "2i${s}" $f ; done ;