summaryrefslogtreecommitdiffstats
path: root/imagrc.toml
blob: a2b838046b3154d172fe1bdb67a8d02e63224837 (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# This is a example configuration file for the imag suite.
# It is written in TOML

[store]

# Set to false if you do not want imag to create the directory where the store
# lives implicitely
implicit-create = false

# Hooks which get executed right before the Store is closed.
# They get the store path as StoreId passed, so they can alter the complete
# store, so these hooks should be chosen carefully.
store-unload-hook-aspects  = [ "debug", "vcs" ]

pre-create-hook-aspects    = [ "debug", "vcs" ]
post-create-hook-aspects   = [ "debug", "vcs" ]

pre-move-hook-aspects      = [ "debug" ]
post-move-hook-aspects     = [ "debug" ]

pre-retrieve-hook-aspects  = [ "debug", "vcs" ]
post-retrieve-hook-aspects = [ "debug", "vcs" ]

pre-update-hook-aspects    = [ "debug", "vcs" ]
post-update-hook-aspects   = [ "debug", "vcs" ]

pre-delete-hook-aspects    = [ "debug", "vcs" ]
post-delete-hook-aspects   = [ "debug", "vcs" ]

[store.aspects.debug]
parallel = false
mutable_hooks = true

[store.aspects.vcs]
parallel = false
mutable_hooks = false

[store.hooks.stdhook_debug]
aspect = "debug"

[store.hooks.stdhook_git_update]
aspect = "vcs"

# set to false to disable
enabled = true

# Fail if the repository cannot be opened. If this is set to `false`, the error
# will be printed, but will not abort the store operation. `true` will print the
# error and abort the store action.
abort_on_repo_init_failure = true

# Ensure to be on this branche before doing anything.
ensure_branch = "refs/heads/master"

# Try to checkout the ensure_branch if it isn't checked out
try_checkout_ensure_branch = true

# Commit configuration
[store.hooks.stdhook_git_update.commit]

# Enable committing here. If not enabled, the "stdhook_git_storeunload" hook
# will commit all changes in one commit when the store is closed.
enabled = false

# Whether to do the commit interactively
interactive = false

# Set to true to use the $EDITOR for the commit, to false to do on commandline
# When committing without editor, only a single line is allowed as commit
# message
interactive_editor = false

# Commit message if the commit is not interactive
message = "Update"

[store.hooks.stdhook_git_delete]
aspect = "vcs"

# set to false to disable
enabled = true

# Fail if the repository cannot be opened. If this is set to `false`, the error
# will be printed, but will not abort the store operation. `true` will print the
# error and abort the store action.
abort_on_repo_init_failure = true

# Ensure to be on this branche before doing anything.
ensure_branch = "refs/heads/master"

# Try to checkout the ensure_branch if it isn't checked out
try_checkout_ensure_branch = true

# Commit configuration
[store.hooks.stdhook_git_delete.commit]

# Enable committing here. If not enabled, the "stdhook_git_storeunload" hook
# will commit all changes in one commit when the store is closed.
enabled = false

# Whether to do the commit interactively
interactive = false

# Set to true to use the $EDITOR for the commit, to false to do on commandline
# When committing without editor, only a single line is allowed as commit
# message
interactive_editor = false

# Commit message if the commit is not interactive
message = "Deleted"

[store.hooks.stdhook_git_storeunload]
aspect = "vcs"

# set to false to disable
enabled = true

# Fail if the repository cannot be opened. If this is set to `false`, the error
# will be printed, but will not abort the store operation. `true` will print the
# error and abort the store action.
abort_on_repo_init_failure = true

# Ensure to be on this branche before doing anything.
ensure_branch = "refs/heads/master"

# Try to checkout the ensure_branch if it isn't checked out
try_checkout_ensure_branch = true

# Commit configuration
[store.hooks.stdhook_git_storeunload.commit]

# Enable on-unload-committing, causing the store-unload hook to commit the
# changes to the store. This has no effect if the changes were already committed
# by the other git hooks.
enabled = true

# Whether to do the commit interactively
interactive = false

# Set to true to use the $EDITOR for the commit, to false to do on commandline
# When committing without editor, only a single line is allowed as commit
# message
interactive_editor = false

# Commit message if the commit is not interactive
message = "Commit on drop"