summaryrefslogtreecommitdiff
path: root/resolve-undo.c
diff options
context:
space:
mode:
authorLibravatar Karsten Blees <karsten.blees@gmail.com>2013-11-14 20:24:08 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-11-18 13:04:25 -0800
commit6bb69077b74b792ddef66e372c86e66dea8e449b (patch)
tree46625895a9bb3d10868ee93b0fe8c20a6f7f8790 /resolve-undo.c
parentfix 'git update-index --verbose --again' output (diff)
downloadtgif-6bb69077b74b792ddef66e372c86e66dea8e449b.tar.xz
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 'resolve-undo.c')
0 files changed, 0 insertions, 0 deletions