diff options
author | Kirill Smelkov <kirr@mns.spb.ru> | 2014-01-20 20:20:41 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-02-24 14:44:57 -0800 |
commit | af82c7880f1a3df1655092da11c80603260384a0 (patch) | |
tree | d2149c13b42648b9698ab96df91fc85632c91342 /diff.h | |
parent | 8518ff8fabc43aa96f1d8c8cd3de7f399d51d11e (diff) | |
download | git-af82c7880f1a3df1655092da11c80603260384a0.tar.gz |
combine-diff: combine_diff_path.len is not needed anymore
The field was used in order to speed-up name comparison and also to
mark removed paths by setting it to 0.
Because the updated code does significantly less strcmp and also
just removes paths from the list and free right after we know a path
will not be needed, it is not needed anymore.
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.h')
-rw-r--r-- | diff.h | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -198,7 +198,6 @@ extern int diff_root_tree_sha1(const unsigned char *new, const char *base, struct combine_diff_path { struct combine_diff_path *next; - int len; char *path; unsigned int mode; unsigned char sha1[20]; |