-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Seems useful, and makes it consistent with the `jj log` and `jj obslog`.
- Loading branch information
1 parent
fc86d91
commit 8bfb6c1
Showing
3 changed files
with
58 additions
and
26 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
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 |
---|---|---|
|
@@ -130,6 +130,22 @@ fn test_op_log_limit() { | |
"###); | ||
} | ||
|
||
#[test] | ||
fn test_op_log_no_graph() { | ||
let test_env = TestEnvironment::default(); | ||
test_env.jj_cmd_success(test_env.env_root(), &["init", "repo", "--git"]); | ||
let repo_path = test_env.env_root().join("repo"); | ||
|
||
let stdout = | ||
test_env.jj_cmd_success(&repo_path, &["op", "log", "--no-graph", "--color=always"]); | ||
insta::assert_snapshot!(stdout, @r###" | ||
[1m[38;5;12m19b8089fc78b[39m [38;5;[email protected][39m [38;5;14m2001-02-03 04:05:07.000 +07:00[39m - [38;5;14m2001-02-03 04:05:07.000 +07:00[39m[0m | ||
[1madd workspace 'default'[0m | ||
[38;5;4mf1c462c494be[39m [38;5;[email protected][39m [38;5;6m2001-02-03 04:05:07.000 +07:00[39m - [38;5;6m2001-02-03 04:05:07.000 +07:00[39m | ||
initialize repo | ||
"###); | ||
} | ||
|
||
#[test] | ||
fn test_op_log_template() { | ||
let test_env = TestEnvironment::default(); | ||
|