aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/globals.hh
diff options
context:
space:
mode:
authorlincoln auster [they/them] <lincolnauster@gmail.com>2022-01-13 13:01:04 -0700
committerlincoln auster [they/them] <lincolnauster@gmail.com>2022-01-18 16:10:27 -0700
commit3e5a9ad7ff15e5263d8b31288095ebd2e489b8e1 (patch)
tree315a26146f81f9ba63572b610629eab589f8fc46 /src/libstore/globals.hh
parent4af88a4c91e45f1b0f51c5f49c09a4c829d83c39 (diff)
allow modifying lockfile commit msg with nix config option
This allows setting the commit-lockfile-summary option to a non-empty string to override the commit summary while leaving the body unchanged.
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r--src/libstore/globals.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh
index 1911ec855..f65893b10 100644
--- a/src/libstore/globals.hh
+++ b/src/libstore/globals.hh
@@ -966,6 +966,13 @@ public:
Setting<bool> acceptFlakeConfig{this, false, "accept-flake-config",
"Whether to accept nix configuration from a flake without prompting."};
+
+ Setting<std::string> commitLockFileSummary{
+ this, "", "commit-lockfile-summary",
+ R"(
+ The commit summary to use when commiting changed flake lock files. If
+ empty, the summary is generated based on the action performed.
+ )"};
};