Skip to content

Commit

Permalink
Increase number of characters shown in submodule hashes
Browse files Browse the repository at this point in the history
Fixes #1408
  • Loading branch information
dandavison committed Jun 3, 2023
1 parent 546607f commit dda9a87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/handlers/submodule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ impl<'a> StateMachine<'a> {
"{}..{}",
self.config
.minus_style
.paint(minus_commit.chars().take(7).collect::<String>()),
.paint(minus_commit.chars().take(12).collect::<String>()),
self.config
.plus_style
.paint(commit.chars().take(7).collect::<String>()),
.paint(commit.chars().take(12).collect::<String>()),
)?;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_example_diffs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ mod tests {
r#"
some_submodule
──────────────────────────────
ca030fd..803be42"#,
ca030fd1a022..803be42ca46a"#,
);
}

Expand Down

0 comments on commit dda9a87

Please # to comment.