Longitudinal mode control in giant pulse lasers