-
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 |
---|---|---|
|
@@ -1282,14 +1282,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 | ||
-- | ||
|
@@ -1299,6 +1305,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 | ||
-- | ||
|
@@ -1309,24 +1316,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 | ||
│ -- | ||
|
@@ -1343,14 +1358,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 | ||
-- | ||
|