Add debug output on file status

This commit is contained in:
Matthias Beyer 2016-09-20 15:16:22 +02:00
parent 5a6d8adc55
commit 9dc4054a92

View file

@ -157,6 +157,9 @@ impl StoreIdAccessor for UpdateHook {
.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 {
if file_status.contains(STATUS_WT_NEW) || file_status.contains(STATUS_WT_MODIFIED) {
debug!("[GIT CREATE HOOK]: File is modified/new: {}", path.display());