28 lines · 608 B · Rust
RawDownload
use git_object::{borrowed, bstr::ByteSlice, Sign, Time}; pub mod db; mod object {    use git_odb::loose::Object;     #[test]    fn size_in_memory() {        assert_eq!(            std::mem::size_of::<Object>(),            848,            "Loose objects should not grow larger unexpectedly"        )    }} fn signature(time: u32) -> borrowed::Signature<'static> {    borrowed::Signature {        name: b"Sebastian Thiel".as_bstr(),        email: b"byronimo@gmail.com".as_bstr(),        time: Time {            time,            offset: 7200,            sign: Sign::Plus,        },    }}

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