Skip to content

Commit 2d8a08b

Browse files
authored
Update builtin.h
1 parent 7d18d01 commit 2d8a08b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

builtin.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ extern const char git_more_info_string[];
105105
void setup_auto_pager(const char *cmd, int def);
106106

107107
int is_builtin(const char *s);
108-
108+
/*
109+
* Builtins which do not use RUN_SETUP should never see
110+
* a prefix that is not empty; use this to protect downstream
111+
* code which is not prepared to call prefix_filename(), etc.
112+
*/
109113

110114
#define BUG_ON_NON_EMPTY_PREFIX(prefix) do { \
111115
if ((prefix)) \

0 commit comments

Comments
 (0)