4 ms·
My much less polished bash script: $ tt 2017-03-21 repo1 author date commit desc commit desc repo2 author date commit desc function tt {
by amichal 10y ago
My much less polished bash script:
$ tt 2017-03-21
repo1 author date
commit desc
commit desc
repo2 author date
commit desc
function tt {
local day=$1;
local d=$PWD;
local buf="";
echo $day;
cd $GR;
for i in *; do
local p=$GR/$i;
if [ -d "$p/.git" ]; then
cd "$p"; whatup $day
fi
done
cd $d;
}
function whatup {
local day="$1"
if [ "$day" = "" ]; then
day=`date +'%Y-%m-%d'`
fi
local author="$2"
if [ "$author" = "" ]; then
author="amichal"
fi
local dir=`basename $PWD`;
local msg=`git log --all --author $author --oneline --since="$day 00:00:00" --until="$day 23:59:59.999"`
if [[ ! -z "${msg// }" ]]; then
echo "$dir $author $day"
echo "$msg"
echo "----------"
fi
}