Exemplo n.º 1
0
void CTGitPath::EnsureBackslashPathSet() const
{
	if(m_sBackslashPath.IsEmpty())
	{
		SetBackslashPath(m_sFwdslashPath);
		ATLASSERT(IsEmpty() || !m_sBackslashPath.IsEmpty());
	}
}
Exemplo n.º 2
0
// This is a temporary function, to be used during the migration to
// the path class.  Ultimately, functions consuming paths should take a CTGitPath&, not a CString
const CString& CTGitPath::GetWinPathString() const
{
	if(m_sBackslashPath.IsEmpty())
	{
		SetBackslashPath(m_sFwdslashPath);
	}
	return m_sBackslashPath;
}
Exemplo n.º 3
0
LPCTSTR CTGitPath::GetWinPath() const
{
	if(IsEmpty())
	{
		return _T("");
	}
	if(m_sBackslashPath.IsEmpty())
	{
		SetBackslashPath(m_sFwdslashPath);
	}
	return m_sBackslashPath;
}
Exemplo n.º 4
0
LPCTSTR CTSVNPath::GetWinPath() const
{
    if(IsEmpty())
    {
        return L"";
    }
    if(m_sBackslashPath.IsEmpty())
    {
        SetBackslashPath(m_sFwdslashPath);
    }
    if(m_sBackslashPath.GetLength() >= 248)
    {
        m_sLongBackslashPath = L"\\\\?\\" + m_sBackslashPath;
        return m_sLongBackslashPath;
    }
    return m_sBackslashPath;
}