diff options
author | Jameson Miller <jamill@microsoft.com> | 2018-07-02 19:49:30 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-07-03 10:58:15 -0700 |
commit | 825ed4d9a044380ac093563e6bd74311ea4488ef (patch) | |
tree | fcfb270dee1a6d626b4f2d37cbc45ee3534b4b64 /builtin/reset.c | |
parent | 768d7965068189ec5287ac53b4b55bfd443bb456 (diff) | |
download | git-825ed4d9a044380ac093563e6bd74311ea4488ef.tar.gz |
read-cache: teach make_cache_entry to take object_id
Teach make_cache_entry function to take object_id instead of a SHA-1.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/reset.c')
-rw-r--r-- | builtin/reset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/reset.c b/builtin/reset.c index a862c70fab..00109b041f 100644 --- a/builtin/reset.c +++ b/builtin/reset.c @@ -134,7 +134,7 @@ static void update_index_from_diff(struct diff_queue_struct *q, continue; } - ce = make_cache_entry(one->mode, one->oid.hash, one->path, + ce = make_cache_entry(one->mode, &one->oid, one->path, 0, 0); if (!ce) die(_("make_cache_entry failed for path '%s'"), |