45 git_index* index =
nullptr;
50 wxLogError(
"Failed to get repository index" );
54 if( git_index_find( &at_pos, index, aFilePath.ToUTF8().data() ) != 0 )
56 git_index_free( index );
57 wxLogError(
"Failed to find index entry for %s", aFilePath );
61 git_index_free( index );
72 git_index* index =
nullptr;
77 wxLogError(
"Failed to get repository index" );
81 if( git_index_remove_bypath( index, file.ToUTF8().data() ) != 0 )
83 wxLogError(
"Failed to remove index entry for %s", file );
87 if( git_index_write( index ) != 0 )
89 wxLogError(
"Failed to write index" );
93 if( git_index_write_tree( &oid, index ) != 0 )
95 wxLogError(
"Failed to write index tree" );
99 git_index_free( index );
std::vector< wxString > m_filesToRemove
bool RemoveFromIndex(const wxString &aFilePath)
void PerformRemoveFromIndex()
GIT_REMOVE_FROM_INDEX_HANDLER(git_repository *aRepository)
git_repository * m_repository
virtual ~GIT_REMOVE_FROM_INDEX_HANDLER()