I know that it was probably an old fiddle tune, and I also remember something about a story of the song saving some Civil War soldiers. And I know that the C.D.B. song does refer to it. Soilder's Joy is definately not the same song as this (in the way I learned both of them).
I remembered one more line, something about "sow root the tater patch"