mirror of
https://github.com/git/git.git
synced 2026-01-12 13:53:11 +09:00
14 lines
297 B
Bash
Executable File
14 lines
297 B
Bash
Executable File
#!/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/[^#]*#//'
|