Browse Source

Meta/CB: help culling stale topic branches

todo
Junio C Hamano 9 years ago
parent
commit
6b7ee47089
  1. 13
      CB

13
CB

@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
#!/bin/sh
# Cull topic branches

git for-each-ref --merged maint 'refs/heads/*/*' |
while read commit type name
do
git for-each-ref --count=1 --sort=version:refname \
--contains "$name" \
--format="%(taggerdate:iso) #%(refname:strip=2) $name" \
refs/tags/
done |
sort |
sed -e 's/[^#]*#//'
Loading…
Cancel
Save