"Mass Executions in the Confederate Army", by Terry Foenander is a must read on the subject of execution for desertion. However, the link is broken or the site is no longer active. BUT, you can still view it by entering its address on the "Wayback Machine" at http://www.archive.org/
The Wayback Machine is an *extremely* useful tool that every researcher should have as a bookmark.