zeek/auxil/zeek-aux/devel-tools/git-show-fastpath
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

20 lines
410 B
Bash
Executable File

#! /usr/bin/env bash
#
# Shows pending fastpath commits for all modules.
show="git show-ref -q origin/fastpath && git --no-pager log --format=oneline origin/fastpath ^master || exit 0"
(echo "Entering <top-level>" && eval $show && git submodule foreach --recursive "$show") | awk '
/Entering/ { current = $2; next }
{
if ( current != "" )
print "==" current;
print;
current = "";
}
'