diff options
author | Patryk Obara <patryk.obara@gmail.com> | 2017-08-20 22:09:28 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-20 21:51:38 -0700 |
commit | 98e019b067ac8a34e06f9c412f14a080c7c4dc0d (patch) | |
tree | 993e29b9bcffe7603f5b7d377af86aefbb7f1785 /builtin/update-index.c | |
parent | bebfecb94c5c71091a07ebbd300740990d3266c7 (diff) | |
download | git-98e019b067ac8a34e06f9c412f14a080c7c4dc0d.tar.gz git-98e019b067ac8a34e06f9c412f14a080c7c4dc0d.tar.xz |
sha1_file: convert index_path to struct object_id
Convert all remaining callers as well.
Signed-off-by: Patryk Obara <patryk.obara@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/update-index.c')
-rw-r--r-- | builtin/update-index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/update-index.c b/builtin/update-index.c index 56721cf03..d562f2ec6 100644 --- a/builtin/update-index.c +++ b/builtin/update-index.c @@ -280,7 +280,7 @@ static int add_one_path(const struct cache_entry *old, const char *path, int len fill_stat_cache_info(ce, st); ce->ce_mode = ce_mode_from_stat(old, st->st_mode); - if (index_path(ce->oid.hash, path, st, + if (index_path(&ce->oid, path, st, info_only ? 0 : HASH_WRITE_OBJECT)) { free(ce); return -1; |