i was with one of the massachusetts companies , and we marched right smart , then spent the whole night through , 'twixt midnight and dawn , diggin ' trenches and raising up six-foot walls about the perimeter .