diff options
| author | David Bremner <david@tethera.net> | 2024-10-11 21:58:41 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2025-08-09 08:19:43 -0300 |
| commit | de97e0cbdbf48bd5f7576ca0107c1e8542277cdf (patch) | |
| tree | 03dd537cdbe8cfc3c70e259db2b0b19c17ae52a7 /lib | |
| parent | aa761727999b105711ba4ca789e0836a0a05cf9f (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 95918fc2..7f520c49 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -2635,6 +2635,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; |
