From e01f1403b9b501c563b1fe0e0052460a95945528 Mon Sep 17 00:00:00 2001
From: Lars Hjemli <hjemli@gmail.com>
Date: Mon, 17 Mar 2008 22:13:16 +0000
Subject: Fix segfault in patch view for root commit

The code for patch view assumed the current commit would always have a parent,
which made cgit segfault when that wasn't the case.

This fixes the bug and adds a test-script for patch view which includes a test
for the inital commit.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
---
(limited to 'ui-diff.h')

--
cgit v0.9.0.2