I think this is it IRS pub936 page10:
Acquiring an interest in a home because
of a divorce. If you incur debt to acquire the in
terest of a spouse or former spouse in a home
because of a divorce or legal separation, you
can treat that debt as home acquisition debt.