33#include <wx/bmpbuttn.h> 
   35#include <wx/checkbox.h> 
   59    git_config_entry* name_c = 
nullptr;
 
   60    git_config_entry* email_c = 
nullptr;
 
   62    git_config* 
config = 
nullptr;
 
   64    if( git_config_open_default( &
config ) != 0 )
 
   67        return std::make_pair( 
name, email );
 
   72    if( git_config_get_entry( &name_c, 
config, 
"user.name" ) != 0 )
 
   75        return std::make_pair( 
name, email );
 
   80    if( git_config_get_entry( &email_c, 
config, 
"user.email" ) != 0 )
 
   83        return std::make_pair( 
name, email );
 
   92        email = email_c->value;
 
   94    return std::make_pair( 
name, email );
 
 
  124        m_author->SetValue( defaultAuthor.first );
 
  130            m_author->SetValue( defaultAuthor.first );
 
  140    wxCommandEvent event;
 
 
static wxString GetLastGitError()
 
wxStaticText * m_authorLabel
 
wxStaticText * m_authorEmailLabel
 
wxSpinCtrl * m_updateInterval
 
PANEL_GIT_REPOS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
 
wxTextCtrl * m_authorEmail
 
void onEnableGitClick(wxCommandEvent &event) override
 
PANEL_GIT_REPOS(wxWindow *parent)
 
~PANEL_GIT_REPOS() override
 
void onDefaultClick(wxCommandEvent &event) override
 
void ResetPanel() override
Reset the contents of this panel.
 
bool TransferDataToWindow() override
 
bool TransferDataFromWindow() override
 
virtual COMMON_SETTINGS * GetCommonSettings() const
 
const wxChar *const traceGit
Flag to enable Git debugging output.
 
std::unique_ptr< git_config, decltype([](git_config *aConfig) { git_config_free(aConfig); })> GitConfigPtr
A unique pointer for git_config objects with automatic cleanup.
 
std::unique_ptr< git_config_entry, decltype([](git_config_entry *aEntry) { git_config_entry_free(aEntry); })> GitConfigEntryPtr
A unique pointer for git_config_entry objects with automatic cleanup.
 
static std::pair< wxString, wxString > getDefaultAuthorAndEmail()
 
PGM_BASE & Pgm()
The global program "get" accessor.
 
wxLogTrace helper definitions.