提交 211836f7 编写于 作者: J Junio C Hamano

Merge branch 'da/include-compat-util-first-in-c'

Code clean-up.

* da/include-compat-util-first-in-c:
  cleanups: ensure that git-compat-util.h is included first
/*
* Copyright (c) 2011, Google Inc.
*/
#include "cache.h"
#include "bulk-checkin.h"
#include "csum-file.h"
#include "pack.h"
......
......@@ -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);
......
#include "git-compat-util.h"
#include "http.h"
#include "pack.h"
#include "sideband.h"
......
......@@ -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"
......
#include "sigchain.h"
#include "cache.h"
#include "sigchain.h"
#define SIGCHAIN_MAX_SIGNALS 32
......
#include <git-compat-util.h>
#include "git-compat-util.h"
int main(int argc, char **argv)
{
......
#include "sigchain.h"
#include "cache.h"
#include "sigchain.h"
#define X(f) \
static void f(int sig) { \
......
#include "git-compat-util.h"
#include "varint.h"
uintmax_t decode_varint(const unsigned char **bufp)
......
#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 **);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册