diff options
author | Kirill Smelkov <kirr@mns.spb.ru> | 2014-02-24 20:21:40 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-03-20 15:04:31 -0700 |
commit | 903bba68abb8153f181d854e9a7075b893f1303f (patch) | |
tree | b689b132f68ee53f85ba20f51f2f0019fdae7825 /git.rc | |
parent | tree-diff: don't assume compare_tree_entry() returns -1,0,1 (diff) | |
download | tgif-903bba68abb8153f181d854e9a7075b893f1303f.tar.xz |
tree-diff: move all action-taking code out of compare_tree_entry()
- let it do only comparison.
This way the code is cleaner and more structured - cmp function only
compares, and the driver takes action based on comparison result.
There should be no change in performance, as effectively, we just move
if series from on place into another, and merge it to was-already-there
same switch/if, so the result is maybe a little bit faster.
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.rc')
0 files changed, 0 insertions, 0 deletions