History

[clone] move packet-line code into own crate

This is when I learned that there is also a long-running processes format that uses packet-line to communicate. Thus it doesn't belong in transport anymore, which was the previous 'best fit'. Since it's a serialization format, setting up its own crate makes quite some sense.

Sebastian Thiel committed 6 years ago

Commit 879af671 parent bba0a4727 files · +77 −45Browse files

Showing the changes to git-protocol (3 of 27 files). Show all

Unified · Split

3 files
  1. git-protocol/Cargo.toml +1 −1
  2. git-protocol/src/remote_progress.rs +1 −1
  3. git-protocol/tests/remote_progress/mod.rs +1 −1
git-protocol/Cargo.toml+1−1
@@ -15,7 +15,7 @@ doctest = false · 14 unmodified lines
15serde1 = ["serde", "bstr/serde1"]15serde1 = ["serde", "bstr/serde1"]
16 16
17[dependencies]17[dependencies]
18git-transport = { version = "^0.1.0", path = "../git-transport" }18git-packetline = { version = "^0.1.0", path = "../git-packetline" }
19 19
20quick-error = "2.0.0"20quick-error = "2.0.0"
21serde = { version = "1.0.114", optional = true, default-features = false, features = ["derive"]}21serde = { version = "1.0.114", optional = true, default-features = false, features = ["derive"]}
git-protocol/src/remote_progress.rs+1−1
@@ -1,4 +1,4 @@
1use git_transport::RemoteProgress;1use git_packetline::RemoteProgress;
2use nom::{2use nom::{
3 bytes::complete::{tag, take_till, take_till1},3 bytes::complete::{tag, take_till, take_till1},
4 combinator::{map_res, opt},4 combinator::{map_res, opt},
git-protocol/tests/remote_progress/mod.rs+1−1
@@ -1,7 +1,7 @@
1mod parse {1mod parse {
2 use bstr::ByteSlice;2 use bstr::ByteSlice;
3 use git_packetline::RemoteProgress;
3 use git_protocol::parse_remote_progress;4 use git_protocol::parse_remote_progress;
4 use git_transport::RemoteProgress;
5 5
6 #[test]6 #[test]
7 fn a_message_we_dont_understand() {7 fn a_message_we_dont_understand() {

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