I found two things of interest concerning the hanging of the 22 NC deserters by Gen. Pickett. See:
Sermon about NC hanging and
After the NC hangings.
The first is a sermon given by the Confederate chaplin who spoke with the hanged men. The second is a history by Dr. Donald Collins of what was done (or not done) about this incident.
I've read the account by Dr. Collins. His is the most complete retelling of the incident I've run across.