generate commits.txt during make
This commit is contained in:
parent
8dbc983b71
commit
6215dbb78a
2 changed files with 34 additions and 0 deletions
33
commits.sh
Executable file
33
commits.sh
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
#!/bin/bash
|
||||
{
|
||||
|
||||
echo "$(git rev-parse --short=8 HEAD) $(basename $PWD) $(git config --get remote.origin.url)"
|
||||
# echo "-------- ------"
|
||||
|
||||
shopt -s dotglob
|
||||
update() {
|
||||
for d in "$@"; do
|
||||
test -d "$d" -a \! -L "$d" || continue
|
||||
cd "$d"
|
||||
if [ -d ".git" ] || [ -f ".git" ]; then
|
||||
echo "$(git rev-parse --short=8 HEAD) $(basename $PWD) $(git config --get remote.origin.url)"
|
||||
update *
|
||||
fi
|
||||
cd ..
|
||||
done
|
||||
}
|
||||
|
||||
cd ./
|
||||
update *
|
||||
|
||||
cd ./other
|
||||
update *
|
||||
cd ..
|
||||
|
||||
cd ./cores/src
|
||||
update *
|
||||
|
||||
} | sed -e "s,\(git@github.com:\|https\?://github.com/\)\|\(.git$\),,g" | column -t
|
||||
|
||||
# echo "--------"
|
||||
# echo "generated by $0"
|
||||
Loading…
Add table
Add a link
Reference in a new issue