THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

cleanups: ensure that git-compat-util.h is included first

CodingGuidelines states that the first #include in C files should be
git-compat-util.h or another header file that includes it, such as
cache.h or builtin.h.

Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tags/v2.2.0-rc0
David Aguilar 5 years ago
parent
commit
1c4b660412
9 changed files with 7 additions and 8 deletions
  1. 1
    0
      bulk-checkin.c
  2. 0
    2
      bulk-checkin.h
  3. 1
    0
      http.c
  4. 1
    1
      merge-recursive.c
  5. 1
    1
      sigchain.c
  6. 1
    1
      test-regex.c
  7. 1
    1
      test-sigchain.c
  8. 1
    0
      varint.c
  9. 0
    2
      varint.h

+ 1
- 0
bulk-checkin.c View File

@@ -1,6 +1,7 @@
/*
* Copyright (c) 2011, Google Inc.
*/
#include "cache.h"
#include "bulk-checkin.h"
#include "csum-file.h"
#include "pack.h"

+ 0
- 2
bulk-checkin.h View File

@@ -4,8 +4,6 @@
#ifndef BULK_CHECKIN_H
#define BULK_CHECKIN_H

#include "cache.h"

extern int index_bulk_checkin(unsigned char sha1[],
int fd, size_t size, enum object_type type,
const char *path, unsigned flags);

+ 1
- 0
http.c View File

@@ -1,3 +1,4 @@
#include "git-compat-util.h"
#include "http.h"
#include "pack.h"
#include "sideband.h"

+ 1
- 1
merge-recursive.c View File

@@ -3,8 +3,8 @@
* Fredrik Kuivinen.
* The thieves were Alex Riesen and Johannes Schindelin, in June/July 2006
*/
#include "advice.h"
#include "cache.h"
#include "advice.h"
#include "cache-tree.h"
#include "commit.h"
#include "blob.h"

+ 1
- 1
sigchain.c View File

@@ -1,5 +1,5 @@
#include "sigchain.h"
#include "cache.h"
#include "sigchain.h"

#define SIGCHAIN_MAX_SIGNALS 32


+ 1
- 1
test-regex.c View File

@@ -1,4 +1,4 @@
#include <git-compat-util.h>
#include "git-compat-util.h"

int main(int argc, char **argv)
{

+ 1
- 1
test-sigchain.c View File

@@ -1,5 +1,5 @@
#include "sigchain.h"
#include "cache.h"
#include "sigchain.h"

#define X(f) \
static void f(int sig) { \

+ 1
- 0
varint.c View File

@@ -1,3 +1,4 @@
#include "git-compat-util.h"
#include "varint.h"

uintmax_t decode_varint(const unsigned char **bufp)

+ 0
- 2
varint.h View File

@@ -1,8 +1,6 @@
#ifndef VARINT_H
#define VARINT_H

#include "git-compat-util.h"

extern int encode_varint(uintmax_t, unsigned char *);
extern uintmax_t decode_varint(const unsigned char **);


Loading…
Cancel
Save