summaryrefslogtreecommitdiff
path: root/git-archimport.perl
diff options
context:
space:
mode:
authorKarsten Blees <karsten.blees@gmail.com>2013-11-14 19:24:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-11-18 21:04:25 (GMT)
commit6bb69077b74b792ddef66e372c86e66dea8e449b (patch)
tree46625895a9bb3d10868ee93b0fe8c20a6f7f8790 /git-archimport.perl
parente837af61345344448346afef79d53a5ff95bb0b3 (diff)
downloadgit-6bb69077b74b792ddef66e372c86e66dea8e449b.zip
git-6bb69077b74b792ddef66e372c86e66dea8e449b.tar.gz
git-6bb69077b74b792ddef66e372c86e66dea8e449b.tar.bz2
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 'git-archimport.perl')
0 files changed, 0 insertions, 0 deletions