unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 270e5871424599e025b2934250772e0dbc7e168e 1347 bytes (raw)
name: lib/lastmod-fp.h 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
 
/* lastmod-fp.h - database revision query glue
 *
 * This file is part of notmuch.
 *
 * Copyright © 2022 David Bremner
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see https://www.gnu.org/licenses/ .
 *
 * Author: David Bremner <david@tethera.net>
 */

#ifndef NOTMUCH_LASTMOD_FP_H
#define NOTMUCH_LASTMOD_FP_H

#include <xapian.h>

class LastModRangeProcessor : public Xapian::RangeProcessor {
protected:
    notmuch_database_t *notmuch;

public:
    LastModRangeProcessor (notmuch_database_t *notmuch_, const std::string prefix_)
	:  Xapian::RangeProcessor(NOTMUCH_VALUE_LAST_MOD, prefix_, 0), notmuch(notmuch_) { }

    Xapian::Query operator() (const std::string &begin, const std::string &end);
};

#endif /* NOTMUCH_LASTMOD_FP_H */

debug log:

solving 448241f8 ...
found 448241f8 in https://yhetil.org/notmuch/20220809112518.1969385-2-david@tethera.net/ ||
	https://yhetil.org/notmuch/20220814150259.517361-3-david@tethera.net/

applying [1/1] https://yhetil.org/notmuch/20220809112518.1969385-2-david@tethera.net/
diff --git a/lib/lastmod-fp.h b/lib/lastmod-fp.h\r
new file mode 100644\r
index 00000000..448241f8\r

1:7: trailing whitespace.
/* lastmod-fp.h - database revision query glue\r
1:8: trailing whitespace.
 *\r
1:9: trailing whitespace.
 * This file is part of notmuch.\r
1:10: trailing whitespace.
 *\r
1:11: trailing whitespace.
 * Copyright © 2022 David Bremner\r
Checking patch lib/lastmod-fp.h...
Applied patch lib/lastmod-fp.h cleanly.
warning: squelched 34 whitespace errors
warning: 39 lines add whitespace errors.

skipping https://yhetil.org/notmuch/20220814150259.517361-3-david@tethera.net/ for 448241f8
index at:
100644 270e5871424599e025b2934250772e0dbc7e168e	lib/lastmod-fp.h

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