notmuch.git  about / heads / tags
Unnamed repository; edit this file 'description' to name the repository.
blob 9d9e7a7fca5f735b90ebd46bde1d3f6e67dd2db6 291 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
17
 
#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;
}

(*) 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.^

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