8 lines
164 B
Bash
Executable file
8 lines
164 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
git -C "$1" remote update
|
|
|
|
commits=$(git -C "$1" status | grep -o "[0-9*]\scommit" | cut -d " " -f 1)
|
|
[ -z "$commits" ] && exit
|
|
|
|
printf " $commits"
|