History

[repository #190] cleanup usage of bstr…

…so that it always comes from git-object if possible, and so that major users like git-ref re-export it. The re-export is really something to possibly change to put that onto git-repository level, as well.

Sebastian Thiel committed 5 years ago

Commit e4411ff1 parent 1795a3344 files · +52 −54Browse files

Showing the changes to git-repository/src/commit.rs (1 of 44 files). Show all

Unified · Split

git-repository/src/commit.rs+1−1
@@ -1,6 +1,6 @@
1use std::borrow::Cow;1use std::borrow::Cow;
2 2
3use bstr::{BStr, BString, ByteSlice, ByteVec};3use git_object::bstr::{BStr, BString, ByteSlice, ByteVec};
4 4
5/// An empty array of a type usable with the `git::easy` API to help declaring no parents should be used5/// An empty array of a type usable with the `git::easy` API to help declaring no parents should be used
6pub const NO_PARENT_IDS: [git_hash::ObjectId; 0] = [];6pub const NO_PARENT_IDS: [git_hash::ObjectId; 0] = [];

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