Commit 8947a20
committed
Fix git status bugs: double normalization, dead code, stale subscriptions, loose typing
- Remove redundant normalizeCwd calls in retainRemotePoller/releaseRemotePoller
since callers already pass pre-normalized cwd values
- Remove unused enqueueRefreshStatus and associated refreshWorker/import
- Re-subscribe existing watchers when GitStatusClient changes to prevent
stale UI after WebSocket reconnection
- Add toLocalStatusPart to extract only local fields from GitStatusResult
in the remoteUpdated case for type-safe merging1 parent a499106 commit 8947a20
File tree
4 files changed
+30
-31
lines changed- apps
- server/src/git
- Layers
- Services
- web/src/lib
4 files changed
+30
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
203 | 202 | | |
204 | 203 | | |
205 | 204 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | 205 | | |
224 | 206 | | |
225 | 207 | | |
| |||
240 | 222 | | |
241 | 223 | | |
242 | 224 | | |
243 | | - | |
244 | 225 | | |
245 | | - | |
| 226 | + | |
246 | 227 | | |
247 | 228 | | |
248 | | - | |
| 229 | + | |
249 | 230 | | |
250 | 231 | | |
251 | 232 | | |
252 | 233 | | |
253 | 234 | | |
254 | 235 | | |
255 | | - | |
| 236 | + | |
256 | 237 | | |
257 | 238 | | |
258 | 239 | | |
259 | | - | |
| 240 | + | |
260 | 241 | | |
261 | 242 | | |
262 | 243 | | |
| |||
267 | 248 | | |
268 | 249 | | |
269 | 250 | | |
270 | | - | |
271 | 251 | | |
272 | | - | |
| 252 | + | |
273 | 253 | | |
274 | 254 | | |
275 | 255 | | |
276 | 256 | | |
277 | 257 | | |
278 | 258 | | |
279 | | - | |
| 259 | + | |
280 | 260 | | |
281 | 261 | | |
282 | 262 | | |
283 | 263 | | |
284 | 264 | | |
285 | 265 | | |
286 | 266 | | |
287 | | - | |
| 267 | + | |
288 | 268 | | |
289 | 269 | | |
290 | 270 | | |
| |||
320 | 300 | | |
321 | 301 | | |
322 | 302 | | |
323 | | - | |
324 | 303 | | |
325 | 304 | | |
326 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
154 | 163 | | |
155 | 164 | | |
156 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
212 | 224 | | |
213 | 225 | | |
214 | 226 | | |
| |||
241 | 253 | | |
242 | 254 | | |
243 | 255 | | |
244 | | - | |
| 256 | + | |
245 | 257 | | |
246 | 258 | | |
0 commit comments