tree-diff: convert diff_root_tree_sha1() to just call diff_tree_sha1 with old=NULL
commit0b707c3319f37f2ec3700638d62f3199af40c138
authorKirill Smelkov <kirr@mns.spb.ru>
Wed, 5 Feb 2014 16:57:10 +0000 (5 20:57 +0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Feb 2014 18:49:07 +0000 (5 10:49 -0800)
treec7b2c89c8fb5f3ded3b64f969dc0ed2408728fa4
parent791303284cb3ede61729e33112d6923df406161f
tree-diff: convert diff_root_tree_sha1() to just call diff_tree_sha1 with old=NULL

Now since diff_tree_sha1 understands NULL for both old and new, we could
indicate an empty tree for root commit by providing just NULL for old
sha1.

Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tree-diff.c