Add debug output on file status
This commit is contained in:
parent
5a6d8adc55
commit
9dc4054a92
1 changed files with 3 additions and 0 deletions
|
@ -157,6 +157,9 @@ impl StoreIdAccessor for UpdateHook {
|
||||||
.map_into_hook_error()
|
.map_into_hook_error()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
debug!("File status: STATUS_WT_NEW = {}", file_status.contains(STATUS_WT_NEW));
|
||||||
|
debug!("File status: STATUS_WT_MODIFIED = {}", file_status.contains(STATUS_WT_MODIFIED));
|
||||||
|
|
||||||
let cb = &mut |path: &Path, _matched_spec: &[u8]| -> i32 {
|
let cb = &mut |path: &Path, _matched_spec: &[u8]| -> i32 {
|
||||||
if file_status.contains(STATUS_WT_NEW) || file_status.contains(STATUS_WT_MODIFIED) {
|
if file_status.contains(STATUS_WT_NEW) || file_status.contains(STATUS_WT_MODIFIED) {
|
||||||
debug!("[GIT CREATE HOOK]: File is modified/new: {}", path.display());
|
debug!("[GIT CREATE HOOK]: File is modified/new: {}", path.display());
|
||||||
|
|
Loading…
Reference in a new issue