And did the overall sentiment change over the course of the war?
Although is is somewhat narrow in its scope, this older answer should be of interest, tracing the intertwined histories of the popular army song "John Brown's Body" and rising abolitionist sentiment within the Federal forced.