Commit 9c917fa
committed
refactor: improve diff output formatting and rendering
- Add a separator before the file header in the formatted diff output.
- Simplify the diff output rendering by directly printing the formatted diff.
- Remove redundant empty lines in the `diff` command function.
Signed-off-by: codiing-hui <wecoding@yeah.net>1 parent e9dbd2c commit 9c917fa
2 files changed
+15
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
267 | 276 | | |
268 | | - | |
| 277 | + | |
269 | 278 | | |
270 | 279 | | |
271 | 280 | | |
| |||
326 | 335 | | |
327 | 336 | | |
328 | 337 | | |
329 | | - | |
| 338 | + | |
330 | 339 | | |
331 | 340 | | |
332 | 341 | | |
333 | | - | |
| 342 | + | |
334 | 343 | | |
335 | 344 | | |
336 | 345 | | |
337 | | - | |
| 346 | + | |
338 | 347 | | |
339 | 348 | | |
340 | 349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
356 | | - | |
| 355 | + | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
361 | | - | |
362 | 360 | | |
363 | 361 | | |
364 | 362 | | |
| |||
0 commit comments