summaryrefslogtreecommitdiff
path: root/hash-object.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-04-04 13:43:00 -0700
committerJunio C Hamano <junkio@cox.net>2006-04-04 13:43:00 -0700
commit810e1523753553968aac827f57e0e24fc9af6546 (patch)
tree47ec02a8c4a16c1f04e79e10a9b47cbcdfe4f564 /hash-object.c
parent4c61b7d15a6215fa4dffa33c37c3ef9df80d3f67 (diff)
parent90321c106ca6e36c0e884ca677c9a52dea47bdde (diff)
downloadgit-810e1523753553968aac827f57e0e24fc9af6546.tar.gz
Merge branch 'pe/cleanup'
* pe/cleanup: Replace xmalloc+memset(0) with xcalloc. Use blob_, commit_, tag_, and tree_type throughout.
Diffstat (limited to 'hash-object.c')
-rw-r--r--hash-object.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hash-object.c b/hash-object.c
index 6502b5b3d1..43bd93bffb 100644
--- a/hash-object.c
+++ b/hash-object.c
@@ -2,9 +2,10 @@
* GIT - The information manager from hell
*
* Copyright (C) Linus Torvalds, 2005
- * Copyright (C) Junio C Hamano, 2005
+ * Copyright (C) Junio C Hamano, 2005
*/
#include "cache.h"
+#include "blob.h"
static void hash_object(const char *path, const char *type, int write_object)
{
@@ -35,7 +36,7 @@ static const char hash_object_usage[] =
int main(int argc, char **argv)
{
int i;
- const char *type = "blob";
+ const char *type = blob_type;
int write_object = 0;
const char *prefix = NULL;
int prefix_length = -1;