Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: 0b92f1a9d213644d2cd6c1870091c090a6b7eca9 authored by Lars Hjemli on 20 October 2006, 21:24:32 UTC
Fix typo in show-index.c
Tip revision: 0b92f1a
pack.h
#ifndef PACK_H
#define PACK_H

#include "object.h"

/*
 * Packed object header
 */
#define PACK_SIGNATURE 0x5041434b	/* "PACK" */
#define PACK_VERSION 2
#define pack_version_ok(v) ((v) == htonl(2) || (v) == htonl(3))
struct pack_header {
	unsigned int hdr_signature;
	unsigned int hdr_version;
	unsigned int hdr_entries;
};

extern int verify_pack(struct packed_git *, int);
extern int check_reuse_pack_delta(struct packed_git *, unsigned long,
				  unsigned char *, unsigned long *,
				  enum object_type *);
#endif
back to top