This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
pack-repo-chatgpt | |
----------------- | |
Package a Git repo for ChatGPT feedback. | |
Default behavior: | |
- Packages the current *working tree* (includes unstaged and staged changes) | |
- Respects .gitignore (tracked + non-ignored untracked files only) | |
- Produces two outputs in CORE_OUTPUT_DIR: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define DBG_PRINT_ESCHED true | |
#ifdef DBG_PRINT_ESCHED | |
void DBG_PRINT_HELPER(std::stringstream&) {}; | |
template <typename Arg, typename... Args> | |
void DBG_PRINT_HELPER(std::stringstream& ss, const Arg& arg, const Args&... args) { | |
ss << arg; | |
DBG_PRINT_HELPER(ss, args...); | |
} |