]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/Commiting_all_moderated_comments_into_special_branch__63__/comment_1_8403e8ff9c5c8dddb6d744632322f7bc._comment
Added a comment
[ikiwiki.git] / doc / forum / Commiting_all_moderated_comments_into_special_branch__63__ / comment_1_8403e8ff9c5c8dddb6d744632322f7bc._comment
1 [[!comment format=mdwn
2  username="http://joey.kitenet.net/"
3  nickname="joey"
4  subject="comment 1"
5  date="2012-03-22T16:56:39Z"
6  content="""
7 A branch makes sense if it's used in a way that never ties its history with mainline, so all the spam can eventually be dropped out of git, by deleting the branch. Though this is clearly an expert user level option.
8
9 Probably the easiest way to get there would be to keep the branch, checked out, in `.ikiwiki/comments_pending/`. The old code that used that directory is still in ikiwiki for backwards compatability, so it should be easy to get comments written into that location. Then a minimum of vcs-specific code would be needed to set up the branch and commit pending comments to it.
10
11 But there's a wrinkle -- if you just cherry pick from that branch, the comments_pending directory will retain all the old spam, growing without bounds. And the web moderation interface will show them all. I suppose you could check out the branch and revert or delete spammy comments too, but this is feeling like a lot of work the user needs to do in order to use git to moderate spammy comments. I have to think most users would prefer, as I do, to occasionally flailing at a web form in this case.
12 """]]