fbiville / headache

Utility to manage license headers in source files
Apache License 2.0
34 stars 8 forks source link

Provide an option to fetch renamed configuration file? #32

Closed fbiville closed 5 years ago

fbiville commented 5 years ago

27 still leaves an edge case unsolved: a configuration file renamed between two runs will cause headache to fail.

To work around the fact that Git does not follow renames in files' history, headache could offer an extra option such as --last-run-configuration-filename (hopefully a better name will emerge 😋) to specify the lost name of the configuration file at the last headache run revision.

If so, this should be validated, i.e. at least make sure the configuration file exists at the last run revision .

fbiville commented 5 years ago

https://github.com/fbiville/headache/issues/27 offers a solution to that problem that does not require an extra option.