Commit Graph

4 Commits

Author SHA1 Message Date
Matt Mackall
8d7146d630 formatter: add condwrite method
This makes handling conditional output tidier
2012-11-03 14:37:50 -05:00
David M. Carr
9e830e5477 formatter: improve implementation of data method
This alternate syntax was proposed by Bryan O'Sullivan in a review of
441ebe37ceb5.  I haven't been able to measure any particular performance
difference, but the new syntax is more concise and easier to read.
2012-09-20 23:30:59 -04:00
David M. Carr
9b004d69e6 formatter: add base implementation of data method
Previously, nothing was done with the passed in values, which clearly wasn't
the intention.
2012-09-15 22:50:34 -04:00
Matt Mackall
0acc5a5ce3 formatter: add basic formatters 2012-02-20 16:42:47 -06:00