Where does the saying Irish Pennant from in the United States Marine Corps come from?

The term "Irish pennant" derives from the Royal Navy during the time of sailing ships. It was a loose or untidy end of a line. In Navy and Marine Corps parlance today, an Irish pennant is a loose thread on a uniform, for which you get gigged at inspection.