/* * Rebuild the index */ int cmd_rebuildindex(int argc, char * const argv[]) { if (argc != 1) { cout << "rebuildindex takes no arguments!" << endl; cout << "Usage: ori rebuildindex" << endl; } if (!repository.rebuildIndex()) return 1; return 0; }