-
Notifications
You must be signed in to change notification settings - Fork 935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Follow commenting convention for copyright headers. #260
base: master
Are you sure you want to change the base?
Conversation
This seems reasonable enough, but the commit message should explain something about why we're doing this and why this (specifically) is the right thing to do. You say this "allows automation to ..."; but whose automation? is there a well-known standard for this? do any existing tools support special behavior for |
Use "/*-" as the first line of copyright header comments to ease the process of collecting licensing information from a source tree. This convention for marking copyright header comments is in use in other BSD-licensed open-source projects, such as the FreeBSD and NetBSD operating system projects, elftoolchain, libarchive, tcpdump/libpcap, and others. The convention has been formally documented by the FreeBSD project at [1]. [1]: https://man.freebsd.org/cgi/man.cgi?query=style Using this convention in uthash's source tree eases its import into such downstream projects. It is a no-op for other uses. This is a comment-only change that does not affect code behavior.
c6cb82e
to
467d274
Compare
Thanks for the review. I have added more context to the commit message. |
Thanks! The link to https://man.freebsd.org/cgi/man.cgi?query=style is indeed very useful. But I guess the next level of that rabbit hole is: should we also be using a So I feel like I still have basically the same question: This commit is certainly harmless/cosmetic, but who specifically will be helped by it? Is anyone willing to say "yes, this change will specifically make my workflow easier, in the following concrete way..."? Or to put it another way, suppose we did this, and then next year someone comes and asks for Btw, I have basically no idea how uthash is packaged into various package managers. A great way to sell this patch would be to show me some links to where one or more package maintainers maintain their own distribution-specific patchsets against uthash, and show that this patch brings uthash trunk closer-into-line with one or more distributions (allowing them to shrink their patchsets). Such a list of links would also be a great addition to the README! |
The change would make my own workflow a tiny bit easier. For example, a change like [Elftoolchain:r4024] could become a copy instead of a copy-edit. This convenience propagates downstream because Following the
Although possible, this seems unlikely because tooling support for the alternate BSD projects have used
The SPDX identifier has a different function than the Would you like me to revise the patch to add in the appropriate SPDX line? |
That's a good point.
OTOH (moving the goalposts, I admit), that edit was needed only to preserve [r3983] (May 2022)'s addition of
I don't know! This highlights my basic concern here, that we're changing a (trivial) thing without a concrete notion that what we're changing it to is best, or even better. [r4024] didn't bother to add a SPDX line, despite the BSD "kernel source file style guide" mandating one; so why should we take the Another plausible option would be to remove the copyright headers from all uthash's files and rely on the existing The Minix repo you linked to uses plain I see no consensus in favor of |
Use "/*-" for the first line of copyright header comments.
Doing so allows automation to collect license information in a source tree by looking for comments that start with "/*-".
This is a comment-only change that does not affect code behavior.