question: private static PartialOperation isMergeCommit ( final VcsException ex ) { String message = ex . getMessage ( ) ; if ( message . contains ( "fatal: cannot do a partial commit during a merge" ) ) { return PartialOperation . MERGE ; } if ( message . contains ( "fatal: cannot do a partial commit during a cherry-pick" ) ) { return PartialOperation . CHERRY_PICK ; } return PartialOperation . NONE ; }
target:  Check if commit has failed due to unfinished merge or cherry-pick.