11 git for-each-ref 'refs/remotes' | grep -vE ' refs/remotes/([^/]*/HEAD|.*/archived/.*)$'
16 sed -e 's/&/\&/g; s/</</g; s/>/>/g'
26 filename=$outdir/`echo -n "$name" | tr -c 'A-Za-z0-9' '_'`.xml
27 datetime=`date --rfc-2822`
28 branch=`echo "$branch" | escape_html`
30 if ! [ -f "$filename" ]; then
31 cat >"$filename" <<EOF
32 <?xml version="1.0" encoding="UTF-8" ?>
35 <title>Merge conflicts for $name</title>
37 <description>...</description>
38 <lastBuildDate>$datetime</lastBuildDate>
42 cat >>"$filename" <<EOF
44 <title>$branch ($hash)</title>
46 <description><![CDATA[
49 escape_html >>"$filename"
51 cat >>"$filename" <<EOF
65 if [ -z "$outdir" ]; then
75 for f in "$outdir"/*; do
76 [ -f "$f" ] || continue
82 if [ -n "$repodir" ]; then
86 ) | while read -r HASH TYPE REFNAME; do
87 echo >&2 -n "$repodir $REFNAME..."
89 if [ -n "$repodir" ]; then
92 git reset --hard >/dev/null 2>&1
93 if out=`git merge --no-commit -- "$REFNAME" 2>&1`; then
99 git reset --hard >/dev/null 2>&1
101 if [ -n "$out" ]; then
102 n=${REFNAME#refs/remotes/[^/]*/}
113 echo "$out" | to_rss "$outdir" "$n" "$HASH" "$b"
121 echo "Usage: $0 --init OUTDIR"
122 echo " $0 --add OUTDIR [REPODIR]"
123 echo " $0 --finish OUTDIR"