File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -328,9 +328,14 @@ For C programs:
328
328
329
329
- When you come up with an API, document it.
330
330
331
- - The first #include in C files, except in platform specific
332
- compat/ implementations, should be git-compat-util.h or another
333
- header file that includes it, such as cache.h or builtin.h.
331
+ - The first #include in C files, except in platform specific compat/
332
+ implementations, must be either "git-compat-util.h", "cache.h" or
333
+ "builtin.h". You do not have to include more than one of these.
334
+
335
+ - A C file must directly include the header files that declare the
336
+ functions and the types it uses, except for the functions and types
337
+ that are made available to it by including one of the header files
338
+ it must include by the previous rule.
334
339
335
340
- If you are planning a new command, consider writing it in shell
336
341
or perl first, so that changes in semantics can be easily
You can’t perform that action at this time.
0 commit comments