Add API function to get the merge status.