Brad Pitt and Angelina Jolie settle custody battle

Brad Pitt and Angelina Jolie's bitter custody battle is over.

TMZ says the couple have come to an agreement just days before the case was to go before a judge.

Angie wanted sole physical custody of their six children, and Brad wanted joint custody. We don't know what they decided since the terms are confidential, but the war isn't over. TMZ says, "There's still plenty more to be decided in their bitter divorce -- like property settlement -- which could get ugly considering they didn't have a prenup when they got married."

They have asked a judge to give them until next June to reach a deal.

Photo: Getty Images