Consolidate null_sha1[].
Signed-off-by: Junio C Hamano <junio@twinsun.com>
This commit is contained in:

committed by
Junio C Hamano

parent
894a8a8b1b
commit
88cd621dee
3
diff.c
3
diff.c
@ -10,7 +10,6 @@
|
||||
#include "diffcore.h"
|
||||
|
||||
static const char *diff_opts = "-pu";
|
||||
static unsigned char null_sha1[20] = { 0, };
|
||||
|
||||
static int use_size_cache;
|
||||
|
||||
@ -414,7 +413,7 @@ void diff_free_filespec_data(struct diff_filespec *s)
|
||||
static void prep_temp_blob(struct diff_tempfile *temp,
|
||||
void *blob,
|
||||
unsigned long size,
|
||||
unsigned char *sha1,
|
||||
const unsigned char *sha1,
|
||||
int mode)
|
||||
{
|
||||
int fd;
|
||||
|
Reference in New Issue
Block a user