@@ -468,6 +468,122 @@ index 0e05564..aa39060 100644
468
468
469
469
<!-- end:deleted-line-output -->
470
470
471
+ <!-- start:message-line-input -->
472
+
473
+ ``` diff
474
+ diff --git a/rename.md b/rename.md
475
+ index 0e05564..aa39060 100644
476
+ --- a/rename.md
477
+ +++ b/rename.md
478
+ @@ -1,2 +1 @@
479
+ newfile
480
+ - newline
481
+ + newline
482
+ \ No newline at end of file
483
+ diff --git a/rename2.md b/rename2.md
484
+ index 0e05564..aa39060 100644
485
+ --- a/rename2.md
486
+ +++ b/rename2.md
487
+ @@ -1,2 +1 @@
488
+ newfile2
489
+ - newline2
490
+ + newline2
491
+ \ No newline at end of file
492
+
493
+ ```
494
+
495
+ <!-- end:message-line-input -->
496
+
497
+ <!-- start:message-line-output -->
498
+
499
+ ``` json
500
+ {
501
+ "type" : " GitDiff" ,
502
+ "files" : [
503
+ {
504
+ "type" : " ChangedFile" ,
505
+ "chunks" : [
506
+ {
507
+ "type" : " Chunk" ,
508
+ "toFileRange" : {
509
+ "start" : 1 ,
510
+ "lines" : 1
511
+ },
512
+ "fromFileRange" : {
513
+ "start" : 1 ,
514
+ "lines" : 2
515
+ },
516
+ "changes" : [
517
+ {
518
+ "type" : " UnchangedLine" ,
519
+ "lineBefore" : 1 ,
520
+ "lineAfter" : 1 ,
521
+ "content" : " newfile"
522
+ },
523
+ {
524
+ "type" : " DeletedLine" ,
525
+ "lineBefore" : 2 ,
526
+ "content" : " newline"
527
+ },
528
+ {
529
+ "type" : " AddedLine" ,
530
+ "lineAfter" : 2 ,
531
+ "content" : " newline"
532
+ },
533
+ {
534
+ "type" : " MessageLine" ,
535
+ "content" : " No newline at end of file"
536
+ }
537
+ ]
538
+ }
539
+ ],
540
+ "path" : " rename.md"
541
+ },
542
+ {
543
+ "type" : " ChangedFile" ,
544
+ "chunks" : [
545
+ {
546
+ "type" : " Chunk" ,
547
+ "toFileRange" : {
548
+ "start" : 1 ,
549
+ "lines" : 1
550
+ },
551
+ "fromFileRange" : {
552
+ "start" : 1 ,
553
+ "lines" : 2
554
+ },
555
+ "changes" : [
556
+ {
557
+ "type" : " UnchangedLine" ,
558
+ "lineBefore" : 1 ,
559
+ "lineAfter" : 1 ,
560
+ "content" : " newfile2"
561
+ },
562
+ {
563
+ "type" : " DeletedLine" ,
564
+ "lineBefore" : 2 ,
565
+ "content" : " newline2"
566
+ },
567
+ {
568
+ "type" : " AddedLine" ,
569
+ "lineAfter" : 2 ,
570
+ "content" : " newline2"
571
+ },
572
+ {
573
+ "type" : " MessageLine" ,
574
+ "content" : " No newline at end of file"
575
+ }
576
+ ]
577
+ }
578
+ ],
579
+ "path" : " rename2.md"
580
+ }
581
+ ]
582
+ }
583
+ ```
584
+
585
+ <!-- end:message-line-output -->
586
+
471
587
</details >
472
588
473
589
## AST Format
0 commit comments