By default the code.version structure does not include empty fields. Also added a head_date field with the date of the head commit