Skip to content

Commit 2ba338e

Browse files
committed
Merge branch 'parse-refspec'
2 parents 6c06406 + 6c963b0 commit 2ba338e

27 files changed

+1504
-4
lines changed

Cargo.lock

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ members = [
162162
"git-lock",
163163
"git-attributes",
164164
"git-pathspec",
165+
"git-refspec",
165166
"git-path",
166167
"git-repository",
167168
"gitoxide-core",

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ is usable to some extend.
132132
* [git-repository](https://github.com/Byron/gitoxide/blob/main/crate-status.md#git-repository)
133133
* [git-attributes](https://github.com/Byron/gitoxide/blob/main/crate-status.md#git-attributes)
134134
* [git-pathspec](https://github.com/Byron/gitoxide/blob/main/crate-status.md#git-pathspec)
135+
* [git-refspec](https://github.com/Byron/gitoxide/blob/main/crate-status.md#git-refspec)
135136
* `gitoxide-core`
136137
* **very early** _(possibly without any documentation and many rough edges)_
137138
* [git-index](https://github.com/Byron/gitoxide/blob/main/crate-status.md#git-index)

crate-status.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,11 @@ Check out the [performance discussion][git-traverse-performance] as well.
232232

233233
### git-pathspec
234234
* [x] parse
235-
* [ ] check for match
235+
* [ ] matching of paths
236+
237+
### git-refspec
238+
* [x] parse
239+
* [ ] matching of references and object names
236240

237241
### git-note
238242

etc/check-package-size.sh

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ echo "in root: gitoxide CLI"
1818
(enter cargo-smart-release && indent cargo diet -n --package-size-limit 95KB)
1919
(enter git-actor && indent cargo diet -n --package-size-limit 5KB)
2020
(enter git-pathspec && indent cargo diet -n --package-size-limit 25KB)
21+
(enter git-refspec && indent cargo diet -n --package-size-limit 15KB)
2122
(enter git-path && indent cargo diet -n --package-size-limit 15KB)
2223
(enter git-attributes && indent cargo diet -n --package-size-limit 15KB)
2324
(enter git-discover && indent cargo diet -n --package-size-limit 20KB)

git-refspec/CHANGELOG.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## 0.0.0 (2022-08-05)
9+
10+
Initial release for name reservation.
11+
12+
### Commit Statistics
13+
14+
<csr-read-only-do-not-edit/>
15+
16+
- 2 commits contributed to the release.
17+
- 0 commits where understood as [conventional](https://www.conventionalcommits.org).
18+
- 1 unique issue was worked on: [#450](https://github.com/Byron/gitoxide/issues/450)
19+
20+
### Commit Details
21+
22+
<csr-read-only-do-not-edit/>
23+
24+
<details><summary>view details</summary>
25+
26+
* **[#450](https://github.com/Byron/gitoxide/issues/450)**
27+
- prepare git-refspec changelog prior to release ([`3383408`](https://github.com/Byron/gitoxide/commit/3383408ce22ca9c7502ad2d1fab51cf12dc5ee72))
28+
- empty `git-refspec` crate for name reservation prior to implementation ([`871a3c0`](https://github.com/Byron/gitoxide/commit/871a3c054d4fe6c1e92b6f2e260b19463404509f))
29+
</details>
30+

git-refspec/Cargo.toml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[package]
2+
name = "git-refspec"
3+
version = "0.0.0"
4+
repository = "https://github.com/Byron/gitoxide"
5+
license = "MIT/Apache-2.0"
6+
description = "A WIP crate of the gitoxide project for parsing and representing refspecs"
7+
authors = ["Sebastian Thiel <[email protected]>"]
8+
edition = "2018"
9+
include = ["src/**/*", "CHANGELOG.md", "README.md"]
10+
11+
[lib]
12+
doctest = false
13+
14+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
15+
16+
[dependencies]
17+
git-revision = { version = "^0.3.0", path = "../git-revision" }
18+
git-validate = { version = "^0.5.4", path = "../git-validate" }
19+
git-hash = { version = "^0.9.6", path = "../git-hash" }
20+
21+
bstr = { version = "0.2.13", default-features = false, features = ["std"]}
22+
thiserror = "1.0.26"
23+
smallvec = "1.9.0"
24+
25+
[dev-dependencies]
26+
git-testtools = { path = "../tests/tools" }

git-refspec/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# `git-refspec`
2+
3+
### Testing
4+
5+
#### Fuzzing
6+
7+
`cargo fuzz` is used for fuzzing, installable with `cargo install cargo-fuzz`.
8+
9+
Targets can be listed with `cargo fuzz list` and executed via `cargo +nightly fuzz run <target>`,
10+
where `<target>` can be `parse` for example.
11+

git-refspec/fuzz/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
target
2+
corpus
3+
artifacts

0 commit comments

Comments
 (0)