mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-19 23:52:05 +03:00
56 lines
1.4 KiB
Plaintext
56 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
|
||
|
}
|
||
|
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 }
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|