For example in this question I think it's notable that now that git has sparse checkouts the given solution might no longer work. I would add it to the answer like this:
Be aware that if you have sparse checkouts enabled, this setting will be overwritten and you should use the
sparse-checkoutfile to ignore the files in question.
Should I just edit the answer or rather stick with a comment because editing a well-established answer would be considered rude (by the original author)?