psi-header
psi-header copied to clipboard
Working on files with multiple copyright holders
I work on open source projects, where it is common to have multiple copyright holders on a single file. So that top comment may look something like this:
// SPDX-License-Identifier: MIT
// Copyright 2004-2024 Big Corp
// Copyright (c) 2012 Individual
// Copyright © 2014-2022 My company
// Copyright © 2016 Some other Company
I'd like the auto update feature to update just the copyright for myself or my company (depending on the project), but not for anyone else. the replace function only takes a prefix, and for this to work reliably, I think I'd need a glob, something like Copyright * <<company>>
I'll take a look at it over the break and see what I can come up with.
Regards D