Add feature flag for merge_ref_head

Merged Justin Boyson requested to merge jdb/feature-flag-merge-ref-head into master

What does this MR do?

Add feature flag support on the frontend for diff_compare_with_head

Related to #27008 (closed)

Screenshots

n/a

Does this MR meet the acceptance criteria?

Conformity