@@ -22,8 +22,8 @@ pub mod edit {
2222
2323///
2424pub mod peel {
25- /// The error returned by [`Reference::peel_to_id_in_place(…)`][ crate::Reference::peel_to_id_in_place()] and
26- /// [`Reference::into_fully_peeled_id(…)`][ crate::Reference::into_fully_peeled_id()] .
25+ /// The error returned by [`Reference::peel_to_id_in_place(…)`]( crate::Reference::peel_to_id_in_place()) and
26+ /// [`Reference::into_fully_peeled_id(…)`]( crate::Reference::into_fully_peeled_id()) .
2727 #[ derive( Debug , thiserror:: Error ) ]
2828 #[ allow( missing_docs) ]
2929 pub enum Error {
@@ -36,7 +36,7 @@ pub mod peel {
3636
3737///
3838pub mod head_id {
39- /// The error returned by [`Repository::head_id(…)`][ crate::Repository::head_id()] .
39+ /// The error returned by [`Repository::head_id(…)`]( crate::Repository::head_id()) .
4040 #[ derive( Debug , thiserror:: Error ) ]
4141 #[ allow( missing_docs) ]
4242 pub enum Error {
@@ -51,7 +51,7 @@ pub mod head_id {
5151
5252///
5353pub mod head_commit {
54- /// The error returned by [`Repository::head_commit`(…)][ crate::Repository::head_commit()] .
54+ /// The error returned by [`Repository::head_commit`(…)]( crate::Repository::head_commit()) .
5555 #[ derive( Debug , thiserror:: Error ) ]
5656 #[ allow( missing_docs) ]
5757 pub enum Error {
@@ -62,6 +62,21 @@ pub mod head_commit {
6262 }
6363}
6464
65+ ///
66+ pub mod head_tree_id {
67+ /// The error returned by [`Repository::head_tree_id`(…)](crate::Repository::head_tree_id()).
68+ #[ derive( Debug , thiserror:: Error ) ]
69+ #[ allow( missing_docs) ]
70+ pub enum Error {
71+ #[ error( transparent) ]
72+ Head ( #[ from] crate :: reference:: find:: existing:: Error ) ,
73+ #[ error( transparent) ]
74+ PeelToCommit ( #[ from] crate :: head:: peel:: to_commit:: Error ) ,
75+ #[ error( transparent) ]
76+ DecodeCommit ( #[ from] gix_object:: decode:: Error ) ,
77+ }
78+ }
79+
6580///
6681pub mod find {
6782 ///
0 commit comments