diff options
Diffstat (limited to 'examples/change-setting.lua')
-rw-r--r-- | examples/change-setting.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/change-setting.lua b/examples/change-setting.lua index 0317bce..1c26545 100644 --- a/examples/change-setting.lua +++ b/examples/change-setting.lua @@ -19,9 +19,13 @@ if not conf then error(err) end +-- Change name (should not move) conf.settings.project.name = "Clod" +-- Change head (should not move) conf.settings.project.head = "refs/heads/master" +-- Add description (should appear after head) conf.settings.project.description = "Demonstration of settings" +-- Remove other.thing (will also elide trailing blank line) conf.settings.other.thing = nil io.stdout:write(conf:serialise()) |