本文整理汇总了C++中GitEntry::GetGITExecutablePath方法的典型用法代码示例。如果您正苦于以下问题:C++ GitEntry::GetGITExecutablePath方法的具体用法?C++ GitEntry::GetGITExecutablePath怎么用?C++ GitEntry::GetGITExecutablePath使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GitEntry
的用法示例。
在下文中一共展示了GitEntry::GetGITExecutablePath方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: conf
GitDiffDlg::GitDiffDlg(wxWindow* parent, const wxString& workingDir)
: GitDiffDlgBase(parent)
, m_workingDir(workingDir)
{
clConfig conf("git.conf");
GitEntry data;
conf.ReadItem(&data);
m_gitPath = data.GetGITExecutablePath();
WindowAttrManager::Load(this, wxT("GitDiffDlg"), NULL);
m_splitter->SetSashPosition( data.GetGitDiffDlgSashPos() );
}
示例2: GitSettingsDlgBase
GitSettingsDlg::GitSettingsDlg(wxWindow* parent, const wxString& localRepoPath)
: GitSettingsDlgBase(parent)
, m_localRepoPath(localRepoPath)
{
GitEntry data;
data.Load();
m_pathGIT->SetPath(data.GetGITExecutablePath());
m_pathGITK->SetPath(data.GetGITKExecutablePath());
m_checkBoxLog->SetValue(data.GetFlags() & GitEntry::Git_Verbose_Log);
m_checkBoxTerminal->SetValue(data.GetFlags() & GitEntry::Git_Show_Terminal);
m_checkBoxTrackTree->SetValue(data.GetFlags() & GitEntry::Git_Colour_Tree_View);
GitEntry::GitProperties props = GitEntry::ReadGitProperties(m_localRepoPath);
m_textCtrlGlobalEmail->ChangeValue(props.global_email);
m_textCtrlGlobalName->ChangeValue(props.global_username);
m_textCtrlLocalEmail->ChangeValue(props.local_email);
m_textCtrlLocalName->ChangeValue(props.local_username);
SetName("GitSettingsDlg");
WindowAttrManager::Load(this);
}
示例3: conf
GitCommitListDlg::GitCommitListDlg(wxWindow* parent, const wxString& workingDir, GitPlugin* git)
: GitCommitListDlgBase(parent)
, m_git(git)
, m_workingDir(workingDir)
{
LexerConf::Ptr_t lex = EditorConfigST::Get()->GetLexer("diff");
if(lex) {
lex->Apply(m_stcDiff, true);
}
LexerConf::Ptr_t textLex = EditorConfigST::Get()->GetLexer("text");
textLex->Apply(m_stcCommitMessage, true);
clConfig conf("git.conf");
GitEntry data;
conf.ReadItem(&data);
m_gitPath = data.GetGITExecutablePath();
m_gitPath.Trim().Trim(false);
if(m_gitPath.IsEmpty()) {
m_gitPath = "git";
}
SetName("GitCommitListDlg");
WindowAttrManager::Load(this);
m_dvListCtrlCommitList->Connect(ID_COPY_COMMIT_HASH,
wxEVT_COMMAND_MENU_SELECTED,
wxCommandEventHandler(GitCommitListDlg::OnCopyCommitHashToClipboard),
NULL,
this);
m_dvListCtrlCommitList->Connect(ID_REVERT_COMMIT,
wxEVT_COMMAND_MENU_SELECTED,
wxCommandEventHandler(GitCommitListDlg::OnRevertCommit),
NULL,
this);
}