File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ impl File {
22
22
mut out : impl std:: io:: Write ,
23
23
options : write:: Options ,
24
24
) -> std:: io:: Result < ( Version , gix_hash:: ObjectId ) > {
25
+ let _span = gix_features:: trace:: detail!( "gix_index::File::write_to()" , skip_hash = options. skip_hash) ;
25
26
let ( version, hash) = if options. skip_hash {
26
27
let out: & mut dyn std:: io:: Write = & mut out;
27
28
let version = self . state . write_to ( out, options) ?;
@@ -40,6 +41,7 @@ impl File {
40
41
///
41
42
/// Note that the hash produced will be stored which is why we need to be mutable.
42
43
pub fn write ( & mut self , options : write:: Options ) -> Result < ( ) , Error > {
44
+ let _span = gix_features:: trace:: detail!( "gix_index::File::write()" , path = ?self . path) ;
43
45
let mut lock = std:: io:: BufWriter :: with_capacity (
44
46
64 * 1024 ,
45
47
gix_lock:: File :: acquire_to_update_resource ( & self . path , gix_lock:: acquire:: Fail :: Immediately , None ) ?,
You can’t perform that action at this time.
0 commit comments