mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 14:31:30 +03:00
e68b789a32
Previously, roots were always empty and it was unclear what the purpose of the customization was. It's probably best to re-add it along with a test maybe.
57 lines
1.4 KiB
Plaintext
57 lines
1.4 KiB
Plaintext
{
|
|
state: {
|
|
queues: {
|
|
/watch/file-a: {
|
|
events: [
|
|
{ kind: "create-any", paths: ["*"], time: 1 }
|
|
]
|
|
}
|
|
/watch/file-b: {
|
|
events: [
|
|
{ kind: "create-any", paths: ["*"], time: 2 }
|
|
]
|
|
}
|
|
}
|
|
cache: {
|
|
/watch/file-a: 1
|
|
/watch/file-b: 2
|
|
}
|
|
file_system: {
|
|
/watch/file-a: 1
|
|
/watch/file-b: 2
|
|
/watch/file-c: 3
|
|
}
|
|
}
|
|
events: [
|
|
{ kind: "other", flags: ["rescan"], time: 3 }
|
|
]
|
|
expected: {
|
|
queues: {
|
|
/watch/file-a: {
|
|
events: [
|
|
{ kind: "create-any", paths: ["*"], time: 1 }
|
|
]
|
|
}
|
|
/watch/file-b: {
|
|
events: [
|
|
{ kind: "create-any", paths: ["*"], time: 2 }
|
|
]
|
|
}
|
|
}
|
|
rescan_event: { kind: "other", flags: ["rescan"], time: 3 }
|
|
cache: {
|
|
/watch/file-a: 1
|
|
/watch/file-b: 2
|
|
/watch/file-c: 3
|
|
}
|
|
events: {
|
|
short: []
|
|
long: [
|
|
{ kind: "create-any", paths: ["/watch/file-a"], time: 1 }
|
|
{ kind: "create-any", paths: ["/watch/file-b"], time: 2 }
|
|
{ kind: "other", flags: ["rescan"], time: 3 }
|
|
]
|
|
}
|
|
}
|
|
}
|