commit checker
This commit is contained in:
parent
39148fdb86
commit
968e4544cc
1 changed files with 8 additions and 0 deletions
8
scripts/git-check-remote
Executable file
8
scripts/git-check-remote
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/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"
|
Loading…
Reference in a new issue