docs: update README.md
parent
0caa1b4837
commit
a9d1d6e2ce
|
|
@ -449,11 +449,13 @@ If you'd like to ignore certain branches from being saved as a session:
|
||||||
local utils = require("persisted.utils")
|
local utils = require("persisted.utils")
|
||||||
local ignored_branches = {
|
local ignored_branches = {
|
||||||
"feature_branch"
|
"feature_branch"
|
||||||
|
"bug_fix_branch"
|
||||||
}
|
}
|
||||||
|
|
||||||
persisted.setup(opts)
|
persisted.setup(opts)
|
||||||
|
|
||||||
|
-- Only start the plugin if the branch isn't in the ignored list
|
||||||
if not utils.in_table(persisted.branch(), ignored_branches) then
|
if not utils.in_table(persisted.branch(), ignored_branches) then
|
||||||
persisted.load()
|
|
||||||
persisted.start()
|
persisted.start()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -473,11 +473,13 @@ If you’d like to ignore certain branches from being saved as a session:
|
||||||
local utils = require("persisted.utils")
|
local utils = require("persisted.utils")
|
||||||
local ignored_branches = {
|
local ignored_branches = {
|
||||||
"feature_branch"
|
"feature_branch"
|
||||||
|
"bug_fix_branch"
|
||||||
}
|
}
|
||||||
|
|
||||||
persisted.setup(opts)
|
persisted.setup(opts)
|
||||||
|
|
||||||
|
-- Only start the plugin if the branch isn't in the ignored list
|
||||||
if not utils.in_table(persisted.branch(), ignored_branches) then
|
if not utils.in_table(persisted.branch(), ignored_branches) then
|
||||||
persisted.load()
|
|
||||||
persisted.start()
|
persisted.start()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue