Common repeat:
\repeat volta 2
{ a b c d }
Repeat with volta
\repeat volta 2 {a b c d }
\alternative {
{ a b c d}
{ a b c d}
}
Repeat a number of bars:
\repeat percent 4
{ a b c d | a b c d}
To show numbers above the repeated bars, put this before the repetions begin:
\set countPercentRepeats = ##t