aboutsummaryrefslogtreecommitdiff
path: root/git/git-outofdate
blob: b430e2a2903fe9259ea5ef545a1cc965d1a1813f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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'