Skip to content

Commit fd2e5ba

Browse files
committed
add git-url crate
related to #7
1 parent 218d235 commit fd2e5ba

File tree

5 files changed

+37
-3
lines changed

5 files changed

+37
-3
lines changed

Cargo.lock

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ members = [
8686
"git-odb",
8787
"git-repository",
8888
"git-protocol",
89+
"git-url",
8990
"git-transport",
9091
"git-tui",
9192
]

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Please see _'Development Status'_ for a listing of all crates and their capabili
9999
* [ ] [error line](https://github.com/git/git/blob/master/Documentation/technical/pack-protocol.txt#L28:L28)
100100
* [ ] `Iterator` for multi-plexed pack lines from `Read`
101101
* [ ] parse and serialize [capabilities](https://github.com/git/git/blob/master/Documentation/technical/protocol-capabilities.txt#L1:L1)
102-
* [ ] V1
102+
* [ ] **Version 1**
103103
* [ ] [fetch](https://github.com/git/git/blob/master/Documentation/technical/pack-protocol.txt#L157:L157)
104104
* [ ] [ref advertisement](https://github.com/git/git/blob/master/Documentation/technical/pack-protocol.txt#L200:L200)
105105
* [ ] [upload request](https://github.com/git/git/blob/master/Documentation/technical/pack-protocol.txt#L245:L245)
@@ -110,7 +110,7 @@ Please see _'Development Status'_ for a listing of all crates and their capabili
110110
* [ ] multi-ack detailed
111111
* [ ] [server-response (pack)](https://github.com/git/git/blob/master/Documentation/technical/pack-protocol.txt#L404:L404)
112112
* [ ] push
113-
* [ ] [V2](https://github.com/git/git/blob/master/Documentation/technical/protocol-v2.txt)
113+
* [ ] [Version 2](https://github.com/git/git/blob/master/Documentation/technical/protocol-v2.txt)
114114

115115
### git-transport
116116
* [ ] **[git](https://github.com/git/git/blob/master/Documentation/technical/pack-protocol.txt#L66:L66)**
@@ -151,14 +151,18 @@ Please see _'Development Status'_ for a listing of all crates and their capabili
151151
* read and write a git-index file
152152
* add and remove entries
153153
* [ ] API documentation with examples
154+
154155
### git-diff
155156
* diffing of git-object::Tree structures
156157
* diffing, merging, working with hunks of data
157158
* find differences between various states, i.e. index, working tree, commit-tree
158159
* [ ] API documentation with examples
160+
159161
### git-url
162+
* As documented here: https://www.git-scm.com/docs/git-clone#_git_urls
160163
* [ ] ssh://[email protected]/project.git
161164
* [ ] [email protected]:project.git
165+
* [ ] git://[email protected]:project.git
162166
* [ ] ssh://[email protected]/~alice/project.git
163167

164168
### git-features
@@ -263,7 +267,7 @@ Once installed, there are two binaries:
263267
* Use `blocking` as well as `git-features::interruptible` to bring operations into the async world and to control
264268
long running operations.
265269
* When connecting or streaming over TCP connections, especially when receiving on the server, async seems like a must
266-
though. It should be possible to put it behind a feature flag though.
270+
though, but behind a feature flag.
267271

268272
## Roadmap to Future
269273

git-url/Cargo.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[package]
2+
name = "git-url"
3+
version = "0.0.0"
4+
repository = "https://github.com/Byron/git-oxide"
5+
license = "MIT"
6+
description = "A WIP crate of the gitoxide project implementing parsing and serialization of git-url"
7+
authors = ["Sebastian Thiel <[email protected]>"]
8+
edition = "2018"
9+
10+
[lib]
11+
doctest = false
12+
test = false
13+
14+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
15+
16+
[dependencies]

git-url/src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#![forbid(unsafe_code)]
2+
3+
#[cfg(test)]
4+
mod tests {
5+
#[test]
6+
fn it_works() {
7+
assert_eq!(2 + 2, 4);
8+
}
9+
}

0 commit comments

Comments
 (0)