| author | Junio C Hamano <gitster@pobox.com> | |
| Wed, 20 May 2009 22:53:57 +0000 (15:53 -0700) | ||
| committer | Junio C Hamano <gitster@pobox.com> | |
| Mon, 25 May 2009 18:35:19 +0000 (11:35 -0700) | ||
| commit | b87fc96476c4218de044cf77b4c6d10d49aee78a | |
| tree | 507220e69d11bc0b34b22f487a0d4316da00ec0a | tree | snapshot |
| parent | d11b8d342529a8fe2164ceb563ad9213902d3533 | commit | diff |
cache-tree.c::cache_tree_find(): simplify internal API
Earlier cache_tree_find() needs to be called with a valid cache_tree,
but repeated look-up may find an invalid or missing cache_tree in between.
Help simplify the callers by returning NULL to mean "nothing appropriate
found" when the input is NULL.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Earlier cache_tree_find() needs to be called with a valid cache_tree,
but repeated look-up may find an invalid or missing cache_tree in between.
Help simplify the callers by returning NULL to mean "nothing appropriate
found" when the input is NULL.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
| cache-tree.c | diff | blob | history |