Etymology
Today it means: A leguminous herb, Onobrychis caput-galli, with small spiny-crested pods. Full definition →
From cock + -s- + head.
Etymology from Wiktionary, CC BY-SA 4.0.