Skip to content

Commit

Permalink
added date to commits.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaun Inman committed Dec 9, 2024
1 parent a3739ae commit 8b43197
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions commits.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ show() {
pushd "$1" >> /dev/null
HASH=$(git rev-parse --short=8 HEAD)
NAME=$(basename $PWD)
DATE=$(git log -1 --pretty='%ad' --date=format:'%Y-%m-%d')
REPO=$(git config --get remote.origin.url)
REPO=$(sed -E "s,(^[email protected]:)|(^https?://github.com/)|(.git$)|(/$),,g" <<<"$REPO")
popd >> /dev/null

printf '%-24s%-10s%s\n' $NAME $HASH $REPO
printf '%-24s%-10s%-12s%s\n' $NAME $HASH $DATE $REPO
}
list() {
pushd "$1" >> /dev/null
Expand Down Expand Up @@ -68,6 +69,12 @@ bump() {
echo CORES
list ./workspace/tg5040/cores/src
bump

tell TG3040 # just copied from normal rg35xx
show ./workspace/tg5040/other/unzip60
echo CORES
list ./workspace/tg5040/cores/src
bump

tell M17
echo CORES
Expand Down Expand Up @@ -96,5 +103,8 @@ bump() {
echo CORES
list ./workspace/magicmini/cores/src
bump


tell CHECK
echo https://github.com/USER/REPO/compare/HASH...HEAD
bump
} | sed 's/\n/ /g'

0 comments on commit 8b43197

Please sign in to comment.