Revision 7c3fd25dcf2a23ed43bae2ba23a46edab4644a9f authored by Linus Torvalds on 16 January 2008, 00:12:33 UTC, committed by Junio C Hamano on 16 January 2008, 19:37:34 UTC
When creating the commit object, be a whole lot more careful about making sure that the parent lines really are valid parent lines. Check things like MERGE_HEAD having proper SHA1 lines in it, and double-check that all the parents exist and are actually commits. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 2862419
sha1.h
/*
* SHA-1 implementation optimized for ARM
*
* Copyright: (C) 2005 by Nicolas Pitre <nico@cam.org>
* Created: September 17, 2005
*/
#include <stdint.h>
typedef struct sha_context {
uint64_t len;
uint32_t hash[5];
unsigned char buffer[64];
} SHA_CTX;
void SHA1_Init(SHA_CTX *c);
void SHA1_Update(SHA_CTX *c, const void *p, unsigned long n);
void SHA1_Final(unsigned char *hash, SHA_CTX *c);
Computing file changes ...