From: Lars Hjemli Date: Sun, 18 May 2008 19:09:26 +0000 (+0200) Subject: ui-commit: handle root commits X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/502d57596e645ec91bb9b8ca62833cdb0de4a3b1?hp=502d57596e645ec91bb9b8ca62833cdb0de4a3b1 ui-commit: handle root commits Both cgit_print_diff() and cgit_diff_tree() handles root commits nicely, but cgit_print_commit() forgot to check the case of 0 parents. This fixes it, and adds tests to avoid future regressions. Signed-off-by: Lars Hjemli ---