20 lines · 536 B · Rust
RawDownload
mod log {    use git_repository as git;     #[test]    fn message() {        assert_eq!(            git::reference::log::message("commit", "the subject\n\nthe body".into(), 0),            "commit (initial): the subject"        );        assert_eq!(            git::reference::log::message("other", "the subject".into(), 1),            "other: the subject"        );         assert_eq!(            git::reference::log::message("rebase", "the subject".into(), 2),            "rebase (merge): the subject"        );    }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t