Flags had been usually used as rallying facets throughout battles; infantrymen would collect around their shades for morale
https://landenndbd742.rivetgarden.com/posts/the-evolution-of-civil-war-flags-from-battlefields-to-modern-reenactments
Flags were mostly used as rallying facets for the duration of battles; soldiers may collect round their shades for morale reinforce when confronted with overwhelming odds.