diff options
| author | David Bremner <david@tethera.net> | 2026-01-25 07:56:34 +0900 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2026-02-16 07:24:18 +0900 |
| commit | b222d18634e95b54010cec02e994d3cc96755746 (patch) | |
| tree | 5f0a3c028a900f357bda21a934c4c4acea348952 /lib | |
| parent | b8fa14f8a8f3e30c95f1dad54daa79a6a962fa73 (diff) | |
lib/config: add config keys for git-remote-notmuch.
The precise function will be explained in a future update to
notmuch-config(1).
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/config.cc | 11 | ||||
| -rw-r--r-- | lib/notmuch.h | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/config.cc b/lib/config.cc index 8fbd7336..d231c893 100644 --- a/lib/config.cc +++ b/lib/config.cc @@ -608,6 +608,12 @@ _notmuch_config_key_to_string (notmuch_config_key_t key) return "search.authors_matched_separator"; case NOTMUCH_CONFIG_INDEX_AS_TEXT: return "index.as_text"; + case NOTMUCH_CONFIG_GIT_FAIL_ON_MISSING: + return "git.fail_on_missing"; + case NOTMUCH_CONFIG_GIT_METADATA_PREFIX: + return "git.metadata_prefix"; + case NOTMUCH_CONFIG_GIT_REF: + return "git.ref"; default: return NULL; } @@ -636,6 +642,7 @@ _notmuch_config_default (notmuch_database_t *notmuch, notmuch_config_key_t key) case NOTMUCH_CONFIG_NEW_TAGS: return "unread;inbox"; case NOTMUCH_CONFIG_SYNC_MAILDIR_FLAGS: + case NOTMUCH_CONFIG_GIT_FAIL_ON_MISSING: return "true"; case NOTMUCH_CONFIG_USER_NAME: name = getenv ("NAME"); @@ -660,6 +667,10 @@ _notmuch_config_default (notmuch_database_t *notmuch, notmuch_config_key_t key) return ", "; case NOTMUCH_CONFIG_AUTHORS_MATCHED_SEPARATOR: return "| "; + case NOTMUCH_CONFIG_GIT_METADATA_PREFIX: + return "_notmuch_metadata"; + case NOTMUCH_CONFIG_GIT_REF: + return "refs/heads/master"; case NOTMUCH_CONFIG_EXTRA_HEADERS: case NOTMUCH_CONFIG_HOOK_DIR: case NOTMUCH_CONFIG_BACKUP_DIR: diff --git a/lib/notmuch.h b/lib/notmuch.h index dc40c886..c403a348 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -2641,6 +2641,9 @@ typedef enum { NOTMUCH_CONFIG_INDEX_AS_TEXT, NOTMUCH_CONFIG_AUTHORS_SEPARATOR, NOTMUCH_CONFIG_AUTHORS_MATCHED_SEPARATOR, + NOTMUCH_CONFIG_GIT_FAIL_ON_MISSING, + NOTMUCH_CONFIG_GIT_METADATA_PREFIX, + NOTMUCH_CONFIG_GIT_REF, NOTMUCH_CONFIG_LAST } notmuch_config_key_t; |
