|
|
@ -46,8 +46,8 @@ impl DiffProviderRegistry {
|
|
|
|
.find_map(|provider| match provider.get_diff_base(file) {
|
|
|
|
.find_map(|provider| match provider.get_diff_base(file) {
|
|
|
|
Ok(res) => Some(res),
|
|
|
|
Ok(res) => Some(res),
|
|
|
|
Err(err) => {
|
|
|
|
Err(err) => {
|
|
|
|
log::error!("{err:#?}");
|
|
|
|
log::info!("{err:#?}");
|
|
|
|
log::error!("failed to open diff base for {}", file.display());
|
|
|
|
log::info!("failed to open diff base for {}", file.display());
|
|
|
|
None
|
|
|
|
None
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -59,8 +59,8 @@ impl DiffProviderRegistry {
|
|
|
|
.find_map(|provider| match provider.get_current_head_name(file) {
|
|
|
|
.find_map(|provider| match provider.get_current_head_name(file) {
|
|
|
|
Ok(res) => Some(res),
|
|
|
|
Ok(res) => Some(res),
|
|
|
|
Err(err) => {
|
|
|
|
Err(err) => {
|
|
|
|
log::error!("{err:#?}");
|
|
|
|
log::info!("{err:#?}");
|
|
|
|
log::error!("failed to obtain current head name for {}", file.display());
|
|
|
|
log::info!("failed to obtain current head name for {}", file.display());
|
|
|
|
None
|
|
|
|
None
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|