Junio C Hamano <gitster@xxxxxxxxx> writes: > Karthik Nayak <karthik.188@xxxxxxxxx> writes: > >> A more ideal solution would be if 'clang-format' allowed us to append >> rules to the existing '.clang-format' when invoked. But such an option >> does not exist. Since modifying the in-tree '.clang-format' is only done >> on the CI job for style-check and doesn't affect any other jobs and is >> not persisted in any ways, this hack should be okay. > > I think our mails crossed, but I do not know why this hack is OK. > Are there other CI jobs that muck with tracked files in the working > tree? > > Thanks. I mean from an operation of a CI job, the repository is discarded after the job. So there isn't a problem with murking with the working tree. But I agree to your latest response [1], it would be best to do this with a temporary file outside the working tree. Will send a new version soon! Thanks [1]: https://lore.kernel.org/r/xmqqle224npf.fsf@gitster.g
Attachment:
signature.asc
Description: PGP signature