summaryrefslogtreecommitdiff
path: root/builtin-apply.c
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2007-07-07 20:19:08 +0200
committerJunio C Hamano <gitster@pobox.com>2007-07-07 11:53:49 -0700
commit4d3f4b80e49275c7eaf6ba0dbddd6180957926b9 (patch)
tree0e24145e4a92f33d95844c0509c0e95a95f1d9a3 /builtin-apply.c
parent34a3e695497ab2abbf2fc33a46380accaa8c7c15 (diff)
downloadgit-4d3f4b80e49275c7eaf6ba0dbddd6180957926b9.tar.gz
diff-lib.c: don't strdup twice
The static function read_directory in diff-lib.c is only ever called with struct path_list lists with .strdup_paths turned on, i.e. path_list_insert will strdup the paths for us (again). Let's take advantage of that and stop doing it twice. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-apply.c')
0 files changed, 0 insertions, 0 deletions