History

frame for `git-fetchhead` crate (#450)

Even though not immediately required for baselines, it will be useful to have fetchhead related types and writing capabilities.

Sebastian Thiel committed 4 years ago

Commit f9aeda81 parent 095a0997 files · +26 −0Browse files

Unified · Split

7 files
  1. Cargo.lock +4 −0
  2. Cargo.toml +1 −0
  3. README.md +1 −0
  4. crate-status.md +4 −0
  5. etc/check-package-size.sh +1 −0
  6. git-fetchhead/Cargo.toml +13 −0
  7. git-fetchhead/src/lib.rs +2 −0
Cargo.lock+4−0
@@ -1292,6 +1292,10 @@ dependencies = [ · 1291 unmodified lines
12921292 "walkdir",
12931293 ]
12941294
1295+[[package]]
1296+name = "git-fetchhead"
1297+version = "0.0.0"
1298+
12951299 [[package]]
12961300 name = "git-filter"
12971301 version = "0.0.0"
Cargo.toml+1−0
@@ -146,6 +146,7 @@ members = [ · 145 unmodified lines
146146 "git-packetline",
147147 "git-mailmap",
148148 "git-note",
149+ "git-fetchhead",
149150 "git-prompt",
150151 "git-filter",
151152 "git-sec",
README.md+1−0
@@ -149,6 +149,7 @@ is usable to some extend. · 148 unmodified lines
149149 * [git-date](https://github.com/Byron/gitoxide/blob/main/crate-status.md#git-date)
150150 * **idea** _(just a name placeholder)_
151151 * [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)
152153 * [git-filter](https://github.com/Byron/gitoxide/blob/main/crate-status.md#git-filter)
153154 * [git-lfs](https://github.com/Byron/gitoxide/blob/main/crate-status.md#git-lfs)
154155 * [git-rebase](https://github.com/Byron/gitoxide/blob/main/crate-status.md#git-rebase)
crate-status.md+4−0
@@ -259,6 +259,10 @@ Check out the [performance discussion][git-traverse-performance] as well. · 258 unmodified lines
259259 A mechanism to associate metadata with any object, and keep revisions of it using git itself.
260260
261261 * [ ] CRUD for git notes
262+
263+### git-fetchhead
264+* [ ] parse `FETCH_HEAD` information back entirely
265+* [ ] write typical fetch-head lines
262266
263267 ### git-discover
264268
etc/check-package-size.sh+1−0
@@ -46,6 +46,7 @@ echo "in root: gitoxide CLI" · 45 unmodified lines
4646 (enter git-filter && indent cargo diet -n --package-size-limit 5KB)
4747 (enter git-lfs && indent cargo diet -n --package-size-limit 5KB)
4848 (enter git-note && indent cargo diet -n --package-size-limit 5KB)
49+(enter git-fetchhead && indent cargo diet -n --package-size-limit 5KB)
4950 (enter git-sec && indent cargo diet -n --package-size-limit 15KB)
5051 (enter git-tix && indent cargo diet -n --package-size-limit 5KB)
5152 (enter git-credentials && indent cargo diet -n --package-size-limit 20KB)
git-fetchhead/Cargo.toml+13−0
@@ -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]
git-fetchhead/src/lib.rs+2−0
@@ -0,0 +1,2 @@
1+#![deny(rust_2018_idioms)]
2+#![forbid(unsafe_code)]