diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-05-19 20:37:21 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-05-19 20:37:21 -0700 |
commit | 61d7503da141f13bc916b36012760791761cc909 (patch) | |
tree | 2b1cff95e16f2ed1543e4790d682e2e4996e92b7 /object.c | |
parent | 2d220862d43b4d54f3173f67956fc5221690fb7e (diff) | |
parent | 5bf29b950063c8fa2f3666cb6cf2ca20be61f3d1 (diff) | |
download | git-61d7503da141f13bc916b36012760791761cc909.tar.gz |
Merge branch 'jc/replacing'
* jc/replacing:
read_sha1_file(): allow selective bypassing of replacement mechanism
inline lookup_replace_object() calls
read_sha1_file(): get rid of read_sha1_file_repl() madness
t6050: make sure we test not just commit replacement
Declare lookup_replace_object() in cache.h, not in commit.h
Conflicts:
environment.c
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -188,8 +188,8 @@ struct object *parse_object(const unsigned char *sha1) unsigned long size; enum object_type type; int eaten; - const unsigned char *repl; - void *buffer = read_sha1_file_repl(sha1, &type, &size, &repl); + const unsigned char *repl = lookup_replace_object(sha1); + void *buffer = read_sha1_file(sha1, &type, &size); if (buffer) { struct object *obj; |