match-trees: factor out fill_tree_desc_strict
commit10a3fb00ebbf19d5c22a0aa9ccd7803fe5367329
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Thu, 13 Jun 2013 18:19:28 +0000 (13 20:19 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Jun 2013 21:45:38 +0000 (13 14:45 -0700)
tree1ce28145e3a849d348699a6cff04be46a8cbf107
parentf2b4626d9e78e00d2168a8470633d6c7f5331a13
match-trees: factor out fill_tree_desc_strict

Deduplicate code by moving tree_desc initialization into a helper
function, fill_tree_desc_strict.  It is like fill_tree_descriptor,
except that it only accepts tree hashes and no tree references (tags,
commits).  No functional change.

Signed-off-by: René Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
match-trees.c