43 git_index* index =
nullptr;
48 wxLogError(
"Failed to get repository index" );
52 if( git_index_find( &at_pos, index, aFilePath.ToUTF8().data() ) != 0 )
54 git_index_free( index );
55 wxLogError(
"Failed to find index entry for %s", aFilePath );
59 git_index_free( index );
69 git_index* index =
nullptr;
74 wxLogError(
"Failed to get repository index" );
78 if( git_index_remove_bypath( index, file.ToUTF8().data() ) != 0 )
80 wxLogError(
"Failed to remove index entry for %s", file );
84 if( git_index_write( index ) != 0 )
86 wxLogError(
"Failed to write index" );
90 if( git_index_write_tree( &oid, index ) != 0 )
92 wxLogError(
"Failed to write index tree" );
96 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()