head,working tree and reference list