George,
I would think that at that time (1865) it would have to be approved by General Grant. If a military person is charged while still wearing the uniform, that person will be tried by military personell, most of the time Officers. We have seen some in recent years and they were tried by the military.