If a writ of habeas corpus be made returnable before a court in session, all the proceedings had shall be entered of record by the clerk of the court , as in any other case in the court. When the application is heard out of the county where the offense was committed, or in the court of criminal appeals , the clerk shall transmit a certified copy of all the proceedings on the application to the clerk of the court which has jurisdiction of the offense.
Tex. Code Crim. Proc. § 11.51