On Fri, Aug 7, 2009 at 12:18 AM, Alec Clews <[email protected]> wrote:
> On a similiar note it would be useful to have an wiki subcommand that
> does an append, although I figure
i think an append could be constructed by conceptually doing:
wiki export PageName > TEMPFILE
wiki append [-c] [-m "comment string" | -f INPUT_FILENAME] >> TEMPFILE
wiki commit PageName TEMPFILE
where:
* option -m = comment string
* option -f = comments read from filename.
* option -c = "Comment" flag to prepend this to the append:
<em>Commend added to LINK_TO_OLD_VERSION by WHOEVER on TIMESTAMP:</em>
The only new command there is "append", but the others might need to be
refactored to be reusable in that context.
(The code is in src/wiki.c (grep for "_cmd_"), in case you'd like to take a
whack at it.)
:-?
--
----- stephan beal
http://wanderinghorse.net/home/stephan/
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users