X-Git-Url: http://git.sourceforge.jp/view?p=tortoisegit%2FTortoiseGitJp.git;a=blobdiff_plain;f=src%2FGit%2FTGitPath.cpp;h=dbd0dc02d0f238cafb69ab80056029878f9485c7;hp=759d811b6caaca5cb3bc6a77fbea5d6fd274e3d2;hb=880651835af8d405e30e3ac03e47bb415cdf37bc;hpb=494a73c5e5b662fada8f48ad88b7c2a554bebce1 diff --git a/src/Git/TGitPath.cpp b/src/Git/TGitPath.cpp index 759d811..dbd0dc0 100644 --- a/src/Git/TGitPath.cpp +++ b/src/Git/TGitPath.cpp @@ -102,6 +102,9 @@ int CTGitPath::ParserAction(BYTE action) m_Action|= LOGACTIONS_DELETED; if(action == 'H') m_Action|= LOGACTIONS_CACHE; + if(action == 'C' ) + m_Action|= LOGACTIONS_COPY; + return m_Action; } void CTGitPath::SetFromGit(const char* pPath) @@ -125,6 +128,18 @@ void CTGitPath::SetFromGit(const char* pPath, bool bIsDirectory) m_bIsDirectory = bIsDirectory; } +void CTGitPath::SetFromGit(const TCHAR* pPath, bool bIsDirectory) +{ + Reset(); + if (pPath) + { + m_sFwdslashPath = pPath; + SanitizeRootPath(m_sFwdslashPath, true); + } + m_bDirectoryKnown = true; + m_bIsDirectory = bIsDirectory; +} + void CTGitPath::SetFromGit(const CString& sPath,CString *oldpath) { Reset(); @@ -535,7 +550,7 @@ CString CTGitPath::GetBaseFilename() const CString filename=GetFilename(); dot = filename.ReverseFind(_T('.')); if(dot>0) - return filename.Left(dot-1); + return filename.Left(dot); else return filename; } @@ -925,6 +940,7 @@ int CTGitPathList::FillUnRev(int action,CTGitPathList *list) CString one; while( pos>=0 && pos