@@ -22,8 +22,8 @@ pub mod edit {
22
22
23
23
///
24
24
pub 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()) .
27
27
#[ derive( Debug , thiserror:: Error ) ]
28
28
#[ allow( missing_docs) ]
29
29
pub enum Error {
@@ -36,7 +36,7 @@ pub mod peel {
36
36
37
37
///
38
38
pub 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()) .
40
40
#[ derive( Debug , thiserror:: Error ) ]
41
41
#[ allow( missing_docs) ]
42
42
pub enum Error {
@@ -51,7 +51,7 @@ pub mod head_id {
51
51
52
52
///
53
53
pub 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()) .
55
55
#[ derive( Debug , thiserror:: Error ) ]
56
56
#[ allow( missing_docs) ]
57
57
pub enum Error {
@@ -62,6 +62,21 @@ pub mod head_commit {
62
62
}
63
63
}
64
64
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
+
65
80
///
66
81
pub mod find {
67
82
///
0 commit comments