summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/norcs.pm
blob: a3bb6240ef3024e2f33b855137a79083936b4e42 (plain)
  1. #!/usr/bin/perl
  2. # Stubs for no revision control.
  3. package IkiWiki::Plugin::norcs;
  4. use warnings;
  5. use strict;
  6. use IkiWiki;
  7. sub import {
  8. hook(type => "getsetup", id => "norcs", call => \&getsetup);
  9. hook(type => "rcs", id => "rcs_update", call => \&rcs_update);
  10. hook(type => "rcs", id => "rcs_prepedit", call => \&rcs_prepedit);
  11. hook(type => "rcs", id => "rcs_commit", call => \&rcs_commit);
  12. hook(type => "rcs", id => "rcs_commit_staged", call => \&rcs_commit_staged);
  13. hook(type => "rcs", id => "rcs_add", call => \&rcs_add);
  14. hook(type => "rcs", id => "rcs_remove", call => \&rcs_remove);
  15. hook(type => "rcs", id => "rcs_rename", call => \&rcs_rename);
  16. hook(type => "rcs", id => "rcs_recentchanges", call => \&rcs_recentchanges);
  17. hook(type => "rcs", id => "rcs_diff", call => \&rcs_diff);
  18. hook(type => "rcs", id => "rcs_getctime", call => \&rcs_getctime);
  19. hook(type => "rcs", id => "rcs_getmtime", call => \&rcs_getmtime);
  20. }
  21. sub getsetup () {
  22. return
  23. plugin => {
  24. safe => 0, # rcs plugin
  25. rebuild => 0,
  26. section => "rcs",
  27. },
  28. }
  29. sub rcs_update () {
  30. }
  31. sub rcs_prepedit ($) {
  32. return ""
  33. }
  34. sub rcs_commit (@) {
  35. return undef # success
  36. }
  37. sub rcs_commit_staged (@) {
  38. return undef # success
  39. }
  40. sub rcs_add ($) {
  41. }
  42. sub rcs_remove ($) {
  43. }
  44. sub rcs_rename ($$) {
  45. }
  46. sub rcs_recentchanges ($) {
  47. }
  48. sub rcs_diff ($) {
  49. }
  50. sub rcs_getctime ($) {
  51. return 0;
  52. }
  53. sub rcs_getmtime ($) {
  54. return 0;
  55. }
  56. 1