unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob fad9a71d9a14d99ad2a9f553b0ba134d21887b82 290 bytes (raw)
name: test/ghost-report.cc 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 
#include <iostream>
#include <cstdlib>
#include <xapian.h>

int
main (int argc, char **argv)
{

    if (argc < 2) {
	std::cerr << "usage: ghost-report xapian-dir" << std::endl;
	exit (1);
    }

    Xapian::Database db (argv[1]);
    std::cout << db.get_termfreq ("Tghost") << std::endl;
}

debug log:

solving fad9a71d ...
found fad9a71d in https://yhetil.org/notmuch.git/

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).