Skip to content

Instantly share code, notes, and snippets.

@kowey
Created January 7, 2011 14:48
Show Gist options
  • Select an option

  • Save kowey/769532 to your computer and use it in GitHub Desktop.

Select an option

Save kowey/769532 to your computer and use it in GitHub Desktop.
patch review aliases
take_until_hyphen () {
echo $1 | ghc -e "interact (takeWhile (/= '-'))"
}
darcs_screened_context () {
bname=`basename $1 .dpatch`
darcs get --lazy http://darcs.net/screened --context $1 `take_until_hyphen $bname`
# :-( this ain't git checkout ...
notify-send "context fetched: $bname"
}
alias darcs-context=darcs_screened_context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment