madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged.
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
-IGNORE_FILE="${0%/*}/../config/ignore"
+CONFIG_DIR="${0%/*}/../config"
+IGNORE_FILE="$CONFIG_DIR/ignore"
ME="${0##*/}"
case "$ME" in
ME="${0##*/}"
case "$ME" in
esac
CHECKPREFIX='From: someone <'
CHECKPOSTFIX='>'
esac
CHECKPREFIX='From: someone <'
CHECKPOSTFIX='>'
- REPREFIX='^From:.*'
- REPOSTFIX=''
+ REPREFIX='^From:.*\<'
+ REPOSTFIX='\>'
- CHECKPREFIX='References: <something> '
+ CHECKPREFIX='References: <something> <'
- REPREFIX='^References:.*'
- REPOSTFIX=''
+ REPREFIX='^References:.*\<'
+ REPOSTFIX='\>'
ARG="${1#<}"; ARG="${ARG%>}"
;;
esac
ARG="${1#<}"; ARG="${ARG%>}"
;;
esac
ARG_ESCAPED="$(echo "$ARG" | sed -re 's,([.+]),\\\1,g')"
cat <<_eof >> $IGNORE_FILE
ARG_ESCAPED="$(echo "$ARG" | sed -re 's,([.+]),\\\1,g')"
cat <<_eof >> $IGNORE_FILE
-$^# $(date +%Y.%m.%d.%H.%m.%S) added by ${0##*/}
+$^# added by $ME @$(date +%s)
$REPREFIX$ARG_ESCAPED$REPOSTFIX
_eof
$REPREFIX$ARG_ESCAPED$REPOSTFIX
_eof
+
+cd $CONFIG_DIR
+git-commit -m"$ME $1" ${IGNORE_FILE##*/}