diff options
-rwxr-xr-x | git/git-outofdate | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/git/git-outofdate b/git/git-outofdate new file mode 100755 index 0000000..b430e2a --- /dev/null +++ b/git/git-outofdate @@ -0,0 +1,14 @@ +#!/bin/sh + +# git-uptodate + +[ -z "$1" ] && { echo usage: $0 dir 1>&2; exit 1; } +find "$1" -type d -name .git | +while read -r dir; do + printf %s "$(readlink -f "$dir"/..)" + ( + cd "$dir"/.. + git status -uno | sed -n '/^Your branch/{s///;p}' + ) +done | +grep -v 'up to date' |