code: func (r *UploadPackResponse) Encode(w io.Writer) (err error) {
  	if r.isShallow {
  		if err := r.ShallowUpdate.Encode(w); err != nil {
  			return err
  		}
  	}
  
  	if err := r.ServerResponse.Encode(w); err != nil {
  		return err
  	}
  
  	defer ioutil.CheckClose(r.r, &err)
  	_, err = io.Copy(w, r.r)
  	return err
  }
docs: // Encode encodes an UploadPackResponse.