34 lines · 728 B · Rust
RawDownload
use std::borrow::Cow; use bstr::{BStr, ByteSlice}; pub fn cow_str(s: &str) -> Cow<'_, BStr> {    Cow::Borrowed(s.as_bytes().as_bstr())} #[test]fn size_in_memory() {    let actual = std::mem::size_of::<git_config::File<'_>>();    assert!(        actual <= 1040,        "{} <= 1040: This shouldn't change without us noticing",        actual    );} mod open {    use git_config::File;    use git_testtools::fixture_path_standalone;     #[test]    fn parse_config_with_windows_line_endings_successfully() {        File::from_path_no_includes(&fixture_path_standalone("repo-config.crlf"), git_config::Source::Local).unwrap();    }} mod access;mod impls;mod init;mod mutable;mod resolve_includes;mod write;

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