mirror of
https://github.com/git/git.git
synced 2026-01-24 15:57:20 +09:00
Meta/CB: help culling stale topic branches
This commit is contained in:
parent
b7f80a358c
commit
6b7ee47089
13
CB
Executable file
13
CB
Executable file
@ -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…
x
Reference in New Issue
Block a user