Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
diff tool: multiline diffs supported
- Loading branch information
Showing
8 changed files
with
127 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"text": "Common line,\nanother common line.\nAnd one more common line.\nStill a common line, but last, next will be different.\nFirst string for a.\nSecond striing for a.\nThird string, belongs to file a.\nAnd fourth. Again to a.\nWow! Common strings began! =)\nAnother common line.\nDifferent line. AAaaaaa!!\nAaaaa!!\nA!\n" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"text": "Common line,\nanother common line.\nAnd one more common line.\nStill a common line, but last, next will be different.\nFirst string for b.\nSecond striing for b.\nThird string, belongs to file b.\nAnd fourth. Again to b.\nWow! Common strings began! =)\nAnother common line.\nDifferent line. BBbbbbb!!\nBbbbb!!\nB!\n" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
tests/cli/diff_tool/test_diff_tool.test_multiline_context_0.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{'text'} | ||
@@ -5,4 +5,4 @@ | ||
- First string for a. | ||
- Second striing for a. | ||
- Third string, belongs to file a. | ||
- And fourth. Again to a. | ||
+ First string for b. | ||
+ Second striing for b. | ||
+ Third string, belongs to file b. | ||
+ And fourth. Again to b. | ||
@@ -11,3 +11,3 @@ | ||
- Different line. AAaaaaa!! | ||
- Aaaaa!! | ||
- A! | ||
+ Different line. BBbbbbb!! | ||
+ Bbbbb!! | ||
+ B! |
22 changes: 22 additions & 0 deletions
22
tests/cli/diff_tool/test_diff_tool.test_multiline_default.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{'text'} | ||
@@ -2,13 +2,13 @@ | ||
another common line. | ||
And one more common line. | ||
Still a common line, but last, next will be different. | ||
- First string for a. | ||
- Second striing for a. | ||
- Third string, belongs to file a. | ||
- And fourth. Again to a. | ||
+ First string for b. | ||
+ Second striing for b. | ||
+ Third string, belongs to file b. | ||
+ And fourth. Again to b. | ||
Wow! Common strings began! =) | ||
Another common line. | ||
- Different line. AAaaaaa!! | ||
- Aaaaa!! | ||
- A! | ||
+ Different line. BBbbbbb!! | ||
+ Bbbbb!! | ||
+ B! | ||
|
22 changes: 22 additions & 0 deletions
22
tests/cli/diff_tool/test_diff_tool.test_multiline_default_term.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{'text'}[0m | ||
[35m @@ -2,13 +2,13 @@[0m | ||
another common line.[0m | ||
And one more common line.[0m | ||
Still a common line, but last, next will be different.[0m | ||
[31m- First string for a.[0m | ||
[31m- Second striing for a.[0m | ||
[31m- Third string, belongs to file a.[0m | ||
[31m- And fourth. Again to a.[0m | ||
[32m+ First string for b.[0m | ||
[32m+ Second striing for b.[0m | ||
[32m+ Third string, belongs to file b.[0m | ||
[32m+ And fourth. Again to b.[0m | ||
Wow! Common strings began! =)[0m | ||
Another common line.[0m | ||
[31m- Different line. AAaaaaa!![0m | ||
[31m- Aaaaa!![0m | ||
[31m- A![0m | ||
[32m+ Different line. BBbbbbb!![0m | ||
[32m+ Bbbbb!![0m | ||
[32m+ B![0m | ||
[0m |
3 changes: 3 additions & 0 deletions
3
tests/cli/diff_tool/test_diff_tool.test_multiline_disabled.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{'text'} | ||
- 'Common line,\nanother common line.\nAnd one more common line.\nStill a common line, but last, next will be different.\nFirst string for a.\nSecond striing for a.\nThird string, belongs to file a.\nAnd fourth. Again to a.\nWow! Common strings began! =)\nAnother common line.\nDifferent line. AAaaaaa!!\nAaaaa!!\nA!\n' | ||
+ 'Common line,\nanother common line.\nAnd one more common line.\nStill a common line, but last, next will be different.\nFirst string for b.\nSecond striing for b.\nThird string, belongs to file b.\nAnd fourth. Again to b.\nWow! Common strings began! =)\nAnother common line.\nDifferent line. BBbbbbb!!\nBbbbb!!\nB!\n' |