darcs-2.11.0: a distributed, interactive, smart revision control system

Safe HaskellNone

Darcs.UI.PrintPatch

Synopsis

Documentation

printPatch :: ShowPatch p => p wX wY -> IO ()

printPatch prints a patch on standard output.

contextualPrintPatch :: (ShowPatch p, ApplyState p ~ Tree) => Tree IO -> p wX wY -> IO ()

contextualPrintPatch prints a patch, together with its context, on standard output.

printPatchPager :: ShowPatch p => p wX wY -> IO ()

printPatchPager runs '$PAGER' and shows a patch in it.

printFriendly :: (ShowPatch p, ApplyState p ~ Tree) => Maybe (Tree IO) -> Verbosity -> Summary -> WithContext -> p wX wY -> IO ()

printFriendly opts patch prints patch in accordance with the flags in opts, ie, whether --verbose or --summary were passed at the command-line.

showFriendly :: ShowPatch p => Verbosity -> Summary -> p wX wY -> Doc

showFriendly flags patch returns a Doc representing the right way to show patch given the list flags of flags darcs was invoked with.