Created
January 7, 2011 14:48
-
-
Save kowey/769532 to your computer and use it in GitHub Desktop.
patch review aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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