File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
crates/gitbutler-core/src/virtual_branches Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -2229,27 +2229,6 @@ pub fn write_tree_onto_tree(
2229
2229
Ok ( tree_oid)
2230
2230
}
2231
2231
2232
- fn _print_tree ( repo : & git2:: Repository , tree : & git2:: Tree ) -> Result < ( ) > {
2233
- println ! ( "tree id: {}" , tree. id( ) ) ;
2234
- for entry in tree {
2235
- println ! (
2236
- " entry: {} {}" ,
2237
- entry. name( ) . unwrap_or_default( ) ,
2238
- entry. id( )
2239
- ) ;
2240
- // get entry contents
2241
- let object = entry. to_object ( repo) . context ( "failed to get object" ) ?;
2242
- let blob = object. as_blob ( ) . context ( "failed to get blob" ) ?;
2243
- // convert content to string
2244
- if let Ok ( content) = std:: str:: from_utf8 ( blob. content ( ) ) {
2245
- println ! ( " blob: {}" , content) ;
2246
- } else {
2247
- println ! ( " blob: BINARY" ) ;
2248
- }
2249
- }
2250
- Ok ( ( ) )
2251
- }
2252
-
2253
2232
#[ allow( clippy:: too_many_arguments) ]
2254
2233
pub fn commit (
2255
2234
project_repository : & project_repository:: Repository ,
You can’t perform that action at this time.
0 commit comments