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