git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Place cache.h at the first place to match generl rule
@ 2014-03-01 15:05 Sun He
  2014-03-01 18:05 ` brian m. carlson
  0 siblings, 1 reply; 2+ messages in thread
From: Sun He @ 2014-03-01 15:05 UTC (permalink / raw)
  To: git; +Cc: pclouds, Sun He

Signed-off-by: Sun He <sunheehnus@gmail.com>
Helped-by: Duy Nguyen <pclouds@gmail.com>
---

 The general rule is if cache.h or git-compat-util.h is included,
 it is the first #include.

 I parsed all the source files, and find many files start with builtin.h.
 And git-compat-util.h is the first in it. So they don't need any change.

 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.

 Thanks.

 sigchain.c      | 2 +-
 test-sigchain.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sigchain.c b/sigchain.c
index 1118b99..faa375d 100644
--- a/sigchain.c
+++ b/sigchain.c
@@ -1,5 +1,5 @@
-#include "sigchain.h"
 #include "cache.h"
+#include "sigchain.h"
 
 #define SIGCHAIN_MAX_SIGNALS 32
 
diff --git a/test-sigchain.c b/test-sigchain.c
index 42db234..e499fce 100644
--- a/test-sigchain.c
+++ b/test-sigchain.c
@@ -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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Place cache.h at the first place to match generl rule
  2014-03-01 15:05 [PATCH] Place cache.h at the first place to match generl rule Sun He
@ 2014-03-01 18:05 ` brian m. carlson
  0 siblings, 0 replies; 2+ messages in thread
From: brian m. carlson @ 2014-03-01 18:05 UTC (permalink / raw)
  To: Sun He; +Cc: git, pclouds

[-- Attachment #1: Type: text/plain, Size: 422 bytes --]

On Sat, Mar 01, 2014 at 11:05:23PM +0800, Sun He wrote:
> Signed-off-by: Sun He <sunheehnus@gmail.com>
> Helped-by: Duy Nguyen <pclouds@gmail.com>

Your commit summary has "generl" instead of "general".

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-01 18:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-01 15:05 [PATCH] Place cache.h at the first place to match generl rule Sun He
2014-03-01 18:05 ` brian m. carlson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).