Place cache.h at the first place to match general rule
PATCH v3 1/1 Place cache.h at the first place to match general rule
The general rule is if cache.h or git-compat-util.h is included, it is the first #include.
As builtin.h starts with git-compat-util.h, files that start with builtin.h are not changed.
---
"PATCH v3" fix the position of information I want to convey to readers, with the directions of Eric Sunshine.
sigchain.c and test-sigchain.c are started with "sigchain.h" I checked sigchain.h, and it didn't import any bug.
But to keep consistant with general rule, we should take this patch.
sigchain.c | 2 +- test-sigchain.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sigchain.c +1 -1
@@ -1,5 +1,5 @@ -#include "sigchain.h" #include "cache.h" +#include "sigchain.h" #define SIGCHAIN_MAX_SIGNALS 32
test-sigchain.c +1 -1
@@ -1,5 +1,5 @@ -#include "sigchain.h" #include "cache.h" +#include "sigchain.h" #define X (f) \ static void f(int sig) { \
Signature · 1 line
1.9.0.138.g2de3478.dirty
Quoted 4 lines · Sun He
The general rule is if
cache.horgit-compat-util.his included, it is the first #include.
Asbuiltin.hstarts withgit-compat-util.h, files that start withbuiltin.hare not changed.
Minor: Odd one-space indentation on each line of commit message.
Quoted 41 lines
Helped-by Duy Nguyen <[email protected]>Helped-by Eric Sunshine <[email protected]>Signed-off-by Sun He <[email protected]>---
"PATCH v3" fix the position of information I want to convey to readers, with the directions of Eric Sunshine.
sigchain.candtest-sigchain.care started with "sigchain.h" I checkedsigchain.h, and it didn't import any bug.
But to keep consistant with general rule, we should take this patch.sigchain.c | 2 +- test-sigchain.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)sigchain.c +1
-1@@ -1,5 +1,5 @@ -#include "sigchain.h" #include "cache.h" +#include "sigchain.h" #define SIGCHAIN_MAX_SIGNALS 32test-sigchain.c +1
-2@@ -1,5 +1,5 @@ -#include "sigchain.h" #include "cache.h" +#include "sigchain.h" #define X (f) \ static void f(int sig) { \ --1.9.0.138.g2de3478.dirty