git resource status checking saves 1 shell_out system call