I found this article and thought it may help. If the baby is that uncomfortable contact your pedi. I also recommend a support group like La Leche League.
1. Temporary Irritant or Sensitivity Common irritants include: chocolate (may also cause diarrhea), and "gassy" vegetables (for example, broccoli, cauliflower, bell peppers, and onions). If you suspect that your newborn is "fussy" or irritated by certain foods you're eating, one approach for determining the irritants, as well as providing useful information to your pediatrician, is to keep a food journal. Be sure to note each food, the quantity consumed, and both the time you ate it and the time you breastfed your baby. You may also want to note your infant's reaction and when it appeared to happen (during feeding, 1 hour later, etc.).
If your baby is temporarily irritated by the foods you eat, it usually subsides as your baby grows and his/her gastro-intestinal track matures. Be sure to discuss possible irritants with your health care provider.
1. Allergic Reactions On rare occasions, newborns are allergic to foods (eggs, corn, dairy, soy, wheat, peanuts and tree nuts are the most common) passing through the breast milk. Symptoms of an allergic reaction may include vomiting, diarrhea, rash, irritability, gas, or blood in the stool. It can often take 2 weeks for an allergic irritant to clear out of your system, so eliminate a suspected food for two weeks, then try to monitor whether positive changes occur in your baby. Then, reintroduce foods one by one in order to isolate and determine a possible problem. Resume eating these foods in small amounts, and watch for symptoms to recur. Discuss your suspicions with your child's pediatrician.