diff options
author | Karsten Blees <karsten.blees@gmail.com> | 2013-11-14 20:24:08 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-11-18 13:04:25 -0800 |
commit | 6bb69077b74b792ddef66e372c86e66dea8e449b (patch) | |
tree | 46625895a9bb3d10868ee93b0fe8c20a6f7f8790 /read-cache.c | |
parent | e837af61345344448346afef79d53a5ff95bb0b3 (diff) | |
download | git-6bb69077b74b792ddef66e372c86e66dea8e449b.tar.gz |
builtin/update-index.c: cleanup update_one
do_reupdate calls update_one with a cache_entry.name, there's no need for
the extra sanitation / normalization that happens in prefix_path.
cmd_update_index calls update_one with an already prefixed path, no need to
prefix_path twice.
Remove the extra prefix_path from update_one. Also remove the now unused
'prefix' and 'prefix_length' parameters.
As of d089eba "setup: sanitize absolute and funny paths in get_pathspec()",
prefix_path uncoditionally returns a copy, even if the passed in path isn't
changed. Lets unconditionally free() the result.
Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'read-cache.c')
0 files changed, 0 insertions, 0 deletions