TODO:

	if(from != NULL && to != NULL)
	{
		CString range;
		range.Format(_T(" %s..%s "),FixBranchName(*from),FixBranchName(*to));
		param += range;
	}
	else if(to != NULL && hash.IsEmpty())
	{
		CString range;
		range.Format(_T(" %s "), FixBranchName(*to));
		param += range;
	}
	else

	if (startrev == GIT_REV_ZERO)
		startrev.Empty();
	if (endrev == GIT_REV_ZERO)
		endrev.Empty();

void CLogDlg::SetStartRef(const CString& StartRef)
{
	m_LogList.SetStartRef(StartRef);

	if (m_hightlightRevision.IsEmpty())
	{
		if (g_Git.GetHash(m_LogList.m_lastSelectedHash, StartRef))
		{
			MessageBox(g_Git.GetGitLastErr(_T("Could not get hash of \"") + StartRef + _T("\".")), _T("TortoiseGit"), MB_ICONERROR);
		}
		m_hightlightRevision = m_LogList.m_lastSelectedHash;
	}

	ShowStartRef();
}