# Generated files, regenerated rather than merged.
#
# confgenerator.{h,c} are written by `vesc_tool --xmlConfToCode` from the
# parameter XML, and their first line says so. Every upstream merge conflicts
# on them, always in the same place: the two signature constants, which are a
# CRC over the whole parameter set and therefore differ between any two forks.
#
# Resolving that by hand is wrong however it is resolved -- the file has to
# agree with the XML it was generated from, and only the generator can make it
# so. Taking ours and regenerating is the correct procedure, which is what
# `merge=ours` here is for. See MERGING.md.
#
# This is safe to automate specifically because forgetting the regeneration is
# caught: tests/check.sh's "configuration signature and field order" stage
# recomputes both signatures from vesc_tool's XML and fails if the header
# disagrees. Without that stage this rule would be a way to ship a firmware
# that rejects every config the Tool writes.
#
# The driver itself is local config, so each clone needs tests/setup-fork.sh
# run once; git treats an unknown driver as "leave the conflict alone", which
# is the safe way to not have run it.
confgenerator.h merge=ours
confgenerator.c merge=ours

# Deliberately not listed: the other autogenerated files under hwconf/ and
# applications/. They are generated from per-board QML and XML that upstream
# owns and we do not touch, so an upstream change to them should merge
# normally rather than being discarded.
