When kitty is built from a git checkout show the current revision in --debug-config

This commit is contained in:
Kovid Goyal
2018-04-01 20:27:31 +05:30
parent 325d2bc14e
commit fa064bf9cf
3 changed files with 14 additions and 3 deletions

View File

@@ -203,6 +203,9 @@ PyInit_fast_data_types(void) {
PyModule_AddIntConstant(m, "STRIKETHROUGH", STRIKE_SHIFT);
PyModule_AddIntConstant(m, "DECORATION", DECORATION_SHIFT);
PyModule_AddStringMacro(m, ERROR_PREFIX);
#ifdef KITTY_VCS_REV
PyModule_AddStringMacro(m, KITTY_VCS_REV);
#endif
PyModule_AddIntMacro(m, CURSOR_BLOCK);
PyModule_AddIntMacro(m, CURSOR_BEAM);
PyModule_AddIntMacro(m, CURSOR_UNDERLINE);