diff options
author | Junio C Hamano <junkio@cox.net> | 2007-02-28 11:45:56 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-02-28 12:00:00 -0800 |
commit | edaec3fbe8821a5761e35e9b01937eea9b2544c1 (patch) | |
tree | 181b9bae79e0d63fdac6c92b471653adc8b5e2c9 /hash-object.c | |
parent | 597388f6a1c18a117904c307c20542d8a79a1fcd (diff) | |
download | git-edaec3fbe8821a5761e35e9b01937eea9b2544c1.tar.gz git-edaec3fbe8821a5761e35e9b01937eea9b2544c1.tar.xz |
index_fd(): use enum object_type instead of type name string.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'hash-object.c')
-rw-r--r-- | hash-object.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hash-object.c b/hash-object.c index 5f89e64c1..1e6f6bf70 100644 --- a/hash-object.c +++ b/hash-object.c @@ -7,7 +7,7 @@ #include "cache.h" #include "blob.h" -static void hash_object(const char *path, const char *type, int write_object) +static void hash_object(const char *path, enum object_type type, int write_object) { int fd; struct stat st; @@ -73,7 +73,7 @@ int main(int argc, char **argv) if (0 <= prefix_length) arg = prefix_filename(prefix, prefix_length, arg); - hash_object(arg, type, write_object); + hash_object(arg, type_from_string(type), write_object); no_more_flags = 1; } } |