1 #include "git-compat-util.h"
2 #include "systeminfo.h"
5 static FILE *debug_git_fp
= NULL
;
7 void debug_git(char * format
, ...)
11 debug_git_fp
= fopen("C:/git_shell_ext_debug.txt", "a+");
13 debug_git_fp
= fopen("/tmp/git-cheetah-plugin.log", "a+");
17 /* Check again in case the above debug_git_set_file failed. */
24 va_start(params
, format
);
25 length
= vsnprintf(buffer
, sizeof(buffer
), format
, params
);
27 fwrite(buffer
, sizeof(char), length
, debug_git_fp
);
28 fputc('\n', debug_git_fp
);
33 void debug_git_mbox(char *format
, ...)
38 va_start(params
, format
);
39 vsnprintf(buffer
, sizeof(buffer
), format
, params
);