If a divorce is mutual, the custody of a child will be determined by the settlement agreement governing the terms and conditions of the divorce. In case of a contested divorce, a separate suit for custody has to be filed which shall be decided on the merits of a case.