-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will be needed to test functionality for showing shortest unique prefix for commit and change ids. As a bonus, this also allows us to test log output with change ids. As another bonus, this will prevent occasional CI failures like https://github.com/martinvonz/jj/actions/runs/3817554687/jobs/6493881468.
- Loading branch information
Showing
2 changed files
with
25 additions
and
6 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 |
---|---|---|
|
@@ -61,6 +61,16 @@ fn test_log_with_or_without_diff() { | |
o (no description set) | ||
"###); | ||
|
||
// Test default log output format | ||
insta::assert_snapshot!(test_env.jj_cmd_success(&repo_path, &["log"]), @r###" | ||
@ ffdaa62087a2 [email protected] 2001-02-03 04:05:10.000 +07:00 789e536fd2e0 | ||
| a new commit | ||
o 9a45c67d3e96 [email protected] 2001-02-03 04:05:08.000 +07:00 4291e264ae97 | ||
| add a file | ||
o 000000000000 1970-01-01 00:00:00.000 +00:00 000000000000 | ||
(no description set) | ||
"###); | ||
|
||
let stdout = test_env.jj_cmd_success(&repo_path, &["log", "-T", "description", "--no-graph"]); | ||
insta::assert_snapshot!(stdout, @r###" | ||
a new commit | ||
|