What is the meaning of the word "jack-by-the-hedge"?

Definitions:

  1. A European herb with the scientific mane Alliaria petiolata that gets its name from its tendency to grow along hedgerows and in semi-shaded areas. copy to clipboard NOUN
    • The herbalists gathered jack-by-the-hedge leaves to create soothing teas. copy to clipboard
  2. European herb that smells like garlic. copy to clipboard NOUN
    • The jack-by-the-hedge provided shelter for small creatures, like field mice and voles. copy to clipboard

Synonyms: