1
0
Fork 0

Ignoring commits with ':' subject prefix

This will later be configurable.
master
Mike Gerwitz 2012-10-11 00:48:51 -04:00
parent 0ea280a430
commit 81356e4104
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
2 changed files with 12 additions and 0 deletions

View File

@ -45,6 +45,12 @@ lasthash=
# generate index # generate index
while read hash commit ts id subject; do while read hash commit ts id subject; do
# ignore commits that begin with ':'
[[ "$subject" == :* ]] && {
echo "[HTML] Ignoring $commit: $subject" >&2
continue
}
echo "[HTML] Found $commit: $subject" >&2 echo "[HTML] Found $commit: $subject" >&2
dateout="$( ./tsdate "$ts" %Y-%m-%d )" dateout="$( ./tsdate "$ts" %Y-%m-%d )"

6
rss
View File

@ -39,6 +39,12 @@ EOH
# output recent commits as entries (assuming no funny business in the output) # output recent commits as entries (assuming no funny business in the output)
while read hash commit ts id subject; do while read hash commit ts id subject; do
# ignore commits that begin with ':'
[[ "$subject" == :* ]] && {
echo "[RSS] Ignoring $commit: $subject" >&2
continue
}
echo "[RSS] Found $commit: $subject" >&2 echo "[RSS] Found $commit: $subject" >&2
# TODO: avoid HTML entities where browsers may decide not to render them (e.g. # TODO: avoid HTML entities where browsers may decide not to render them (e.g.