Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 30 lines (26 sloc) 0.495 kb
6038f86 @apenwarr Summary page now shows up to the most recent *passing* entry for each br...
authored
1 #!/bin/bash
2 DIR=$(dirname $0)
3 cd "$DIR/build"
4
bf70974 Allow overriding branches.sh by providing a branches-local script.
Tommi Virtanen authored
5 if [ -x ../branches-local ]; then
6 exec ../branches-local "$@"
7 fi
8
eea2e2e @apenwarr Add a "Most recent" quick reference at the top of the page.
authored
9 if [ "$1" = "-v" ]; then
10 VERBOSE=1
11 else
12 VERBOSE=
13 fi
14
c151d4e @apenwarr Include "pending" branches in Most Recent list too.
authored
15 git show-ref -d |
43e0e08 @apenwarr branches.sh: oops, didn't quite exlude refs/heads/* properly last time!
authored
16 grep -v ' refs/heads/' |
17e021c @apenwarr branches.sh: skip refs/heads/* and */HEAD, as they're irrelevant.
authored
17 grep -v '/HEAD$' |
c151d4e @apenwarr Include "pending" branches in Most Recent list too.
authored
18 sed -e 's, [^/]*/[^/]*/, ,' -e 's,\^{},,' |
62f0bf5 @apenwarr Oops, the new branches.sh -v was sorting slightly incorrectly.
authored
19 tac |
96012c9 @apenwarr branches.sh: don't list branches whose HEAD commit is in out/ignore.
authored
20 while read commit branch; do
c151d4e @apenwarr Include "pending" branches in Most Recent list too.
authored
21 pb="$lb"
22 lb="$branch"
23 if [ -e ../out/ignore/$commit -o "$pb" = "$branch" ]; then
96012c9 @apenwarr branches.sh: don't list branches whose HEAD commit is in out/ignore.
authored
24 continue;
25 fi
eea2e2e @apenwarr Add a "Most recent" quick reference at the top of the page.
authored
26 [ -n "$VERBOSE" ] && echo -n "$commit "
6af2c08 @apenwarr Changed branches.sh to not return a commitid.
authored
27 echo "$branch"
62f0bf5 @apenwarr Oops, the new branches.sh -v was sorting slightly incorrectly.
authored
28 done |
29 tac
Something went wrong with that request. Please try again.