-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
diff: add headers to file-by-file mode
- Loading branch information
Showing
2 changed files
with
54 additions
and
16 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 |
---|---|---|
|
@@ -1142,14 +1142,20 @@ fn test_diff_external_file_by_file_tool() { | |
// diff without file patterns | ||
insta::assert_snapshot!( | ||
test_env.jj_cmd_success(&repo_path, &["diff", config]), @r###" | ||
JJ (#1 of 3): comparing file1 | ||
== | ||
file1 | ||
-- | ||
file1 | ||
JJ (#2 of 3): comparing file2 | ||
== | ||
file2 | ||
-- | ||
file2 | ||
JJ (#3 of 3): comparing file3 | ||
== | ||
file3 | ||
-- | ||
|
@@ -1159,6 +1165,7 @@ fn test_diff_external_file_by_file_tool() { | |
// diff with file patterns | ||
insta::assert_snapshot!( | ||
test_env.jj_cmd_success(&repo_path, &["diff", config, "file1"]), @r###" | ||
JJ (#1 of 1): comparing file1 | ||
== | ||
file1 | ||
-- | ||
|
@@ -1169,24 +1176,32 @@ fn test_diff_external_file_by_file_tool() { | |
test_env.jj_cmd_success(&repo_path, &["log", "-p", config]), @r###" | ||
@ rlvkpnrz [email protected] 2001-02-03 08:05:09 39d9055d | ||
│ (no description set) | ||
│ JJ (#1 of 3): comparing file1 | ||
│ == | ||
│ file1 | ||
│ -- | ||
│ file1 | ||
│ | ||
│ JJ (#2 of 3): comparing file2 | ||
│ == | ||
│ file2 | ||
│ -- | ||
│ file2 | ||
│ | ||
│ JJ (#3 of 3): comparing file3 | ||
│ == | ||
│ file3 | ||
│ -- | ||
│ file3 | ||
◉ qpvuntsm [email protected] 2001-02-03 08:05:08 0ad4ef22 | ||
│ (no description set) | ||
│ JJ (#1 of 2): comparing file1 | ||
│ == | ||
│ file1 | ||
│ -- | ||
│ file1 | ||
│ | ||
│ JJ (#2 of 2): comparing file2 | ||
│ == | ||
│ file2 | ||
│ -- | ||
|
@@ -1203,14 +1218,19 @@ fn test_diff_external_file_by_file_tool() { | |
(no description set) | ||
JJ (#1 of 3): comparing file1 | ||
== | ||
file1 | ||
-- | ||
file1 | ||
JJ (#2 of 3): comparing file2 | ||
== | ||
file2 | ||
-- | ||
file2 | ||
JJ (#3 of 3): comparing file3 | ||
== | ||
file3 | ||
-- | ||
|