While breastfeeding, is it true that what I eat can give my baby gas?

I have heard that this is an old wives tale but I need to know for sure. If you believe it’s true what food is it that gives gas? Spicy food? Broccoli, sauerkraut?

What I have read and what my doctor told me was that MOSt gas is NOT due to what you are eating, it is due to their digestive systems being so immature.

However, if you find a link with certain foods, you should cut them out. I ended up finding out that pizza gave my little one lots of problems. Broccoli also did it, but he outgrew that one. Other than that, I can eat what I want – even caffeine.