File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -551,6 +551,7 @@ The git staging area.
551
551
552
552
* [x] read-only access
553
553
* [x] Graph lookup of commit information to obtain timestamps, generation and parents, and extra edges
554
+ * [ ] [ Corrected generation dates] ( https://github.com/git/git/commit/e8b63005c48696a26f976f5f9b0ccaf1983e439d )
554
555
* [ ] Bloom filter index
555
556
* [ ] Bloom filter data
556
557
* [ ] create and update graphs and graph files
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ impl<'a> Commit<'a> {
51
51
root_tree_id : gix_hash:: oid:: from_bytes_unchecked ( & bytes[ ..file. hash_len ] ) ,
52
52
parent1 : ParentEdge :: from_raw ( read_u32 ( & bytes[ file. hash_len ..] [ ..4 ] ) ) ,
53
53
parent2 : ParentEdge :: from_raw ( read_u32 ( & bytes[ file. hash_len + 4 ..] [ ..4 ] ) ) ,
54
+ // TODO: Add support for corrected commit date offset overflow.
55
+ // See https://github.com/git/git/commit/e8b63005c48696a26f976f5f9b0ccaf1983e439d
54
56
generation : read_u32 ( & bytes[ file. hash_len + 8 ..] [ ..4 ] ) >> 2 ,
55
57
commit_timestamp : u64:: from_be_bytes ( bytes[ file. hash_len + 8 ..] [ ..8 ] . try_into ( ) . unwrap ( ) )
56
58
& 0x0003_ffff_ffff ,
You can’t perform that action at this time.
0 commit comments