From 502d57596e645ec91bb9b8ca62833cdb0de4a3b1 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sun, 18 May 2008 19:09:26 +0000 Subject: 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 --- (limited to 'ui-diff.c') -- cgit v0.9.0.2