Created incorrect in File Header Text?
Completed
I have defined a File Header Text including the line:
- Created: $CREATED_YEAR$-$CREATED_MONTH$-$CREATED_DAY$ $CREATED_TIME$
I created a profile in Code Cleanup with 'Update file header' ticked.
When I reformat using this profile, it changes the CREATED dates! Why? Additionally, the date to which it changes does not appear in the list:
- git log --follow filename
Am I missing something?
Please sign in to leave a comment.
Hello Larry,
Please check "Created" date of the file on disk after you checked it out - such date will be the same as a date of "check out" action.
Thanks!
Is there a strategy I might use so that the "$CREATED_..." (or any other variable) dates remain static with the original datetime stamp they had when first added to the git repo?
Hello Larry,
Unfortunately, no, there isn't. I filed a new request on YouTrack https://youtrack.jetbrains.com/issue/RSRP-463308.
Thanks!