Two other notes: you may need to be prepared for a UI discussion on this
on the list. I would suggest implementing one of the options below (or
something better), and only then start the discussion:
- darcs show patch filename (introduces a precedent of sub^N-commands;
needs modifications to the command line parsing)
- darcs show patch --quiet (seems a little yucky to overload quiet in
this manner?)
- darcs show filehash (shows the file contents hash for *any* object:
darcs show hash src/foo.c and darcs show hash -p bar might do different
things)
- darcs show patch (shows the file contents hash followed by the patch
contents, so darcs show patch | head -n 1 would do what Ian wants)
Also, one documentation point you will want to make is that the command
is repository-local, in the sense that if you run this command in a
repository where the patch has been commuted to a different
representation, you'll get a different result.
|