Even though not immediately required for baselines, it will be useful to have fetchhead related types and writing capabilities.
Unified · Split
| @@ -1292,6 +1292,10 @@ dependencies = [ · 1291 unmodified lines | ||
| 1292 | 1292 | "walkdir", |
| 1293 | 1293 | ] |
| 1294 | 1294 | |
| 1295 | +[[package]] | |
| 1296 | +name = "git-fetchhead" | |
| 1297 | +version = "0.0.0" | |
| 1298 | + | |
| 1295 | 1299 | [[package]] |
| 1296 | 1300 | name = "git-filter" |
| 1297 | 1301 | version = "0.0.0" |
| @@ -146,6 +146,7 @@ members = [ · 145 unmodified lines | ||
| 146 | 146 | "git-packetline", |
| 147 | 147 | "git-mailmap", |
| 148 | 148 | "git-note", |
| 149 | + "git-fetchhead", | |
| 149 | 150 | "git-prompt", |
| 150 | 151 | "git-filter", |
| 151 | 152 | "git-sec", |
| @@ -149,6 +149,7 @@ is usable to some extend. · 148 unmodified lines | ||
| 149 | 149 | * [git-date](https://github.com/Byron/gitoxide/blob/main/crate-status.md#git-date) |
| 150 | 150 | * **idea** _(just a name placeholder)_ |
| 151 | 151 | * [git-note](https://github.com/Byron/gitoxide/blob/main/crate-status.md#git-note) |
| 152 | + * [git-fetchhead](https://github.com/Byron/gitoxide/blob/main/crate-status.md#git-fetchhead) | |
| 152 | 153 | * [git-filter](https://github.com/Byron/gitoxide/blob/main/crate-status.md#git-filter) |
| 153 | 154 | * [git-lfs](https://github.com/Byron/gitoxide/blob/main/crate-status.md#git-lfs) |
| 154 | 155 | * [git-rebase](https://github.com/Byron/gitoxide/blob/main/crate-status.md#git-rebase) |
| @@ -259,6 +259,10 @@ Check out the [performance discussion][git-traverse-performance] as well. · 258 unmodified lines | ||
| 259 | 259 | A mechanism to associate metadata with any object, and keep revisions of it using git itself. |
| 260 | 260 | |
| 261 | 261 | * [ ] CRUD for git notes |
| 262 | + | |
| 263 | +### git-fetchhead | |
| 264 | +* [ ] parse `FETCH_HEAD` information back entirely | |
| 265 | +* [ ] write typical fetch-head lines | |
| 262 | 266 | |
| 263 | 267 | ### git-discover |
| 264 | 268 | |
| @@ -46,6 +46,7 @@ echo "in root: gitoxide CLI" · 45 unmodified lines | ||
| 46 | 46 | (enter git-filter && indent cargo diet -n --package-size-limit 5KB) |
| 47 | 47 | (enter git-lfs && indent cargo diet -n --package-size-limit 5KB) |
| 48 | 48 | (enter git-note && indent cargo diet -n --package-size-limit 5KB) |
| 49 | +(enter git-fetchhead && indent cargo diet -n --package-size-limit 5KB) | |
| 49 | 50 | (enter git-sec && indent cargo diet -n --package-size-limit 15KB) |
| 50 | 51 | (enter git-tix && indent cargo diet -n --package-size-limit 5KB) |
| 51 | 52 | (enter git-credentials && indent cargo diet -n --package-size-limit 20KB) |
| @@ -0,0 +1,13 @@ | ||
| 1 | +[package] | |
| 2 | +name = "git-fetchhead" | |
| 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 to read and write .git/FETCH_HEAD" | |
| 7 | +authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] | |
| 8 | +edition = "2018" | |
| 9 | + | |
| 10 | +[lib] | |
| 11 | +doctest = false | |
| 12 | + | |
| 13 | +[dependencies] | |
| @@ -0,0 +1,2 @@ | ||
| 1 | +#![deny(rust_2018_idioms)] | |
| 2 | +#![forbid(unsafe_code)] | |