Skip to content
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

Add mtimeUpdate parameter #253

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add mtimeUpdate parameter #253

wants to merge 2 commits into from

Conversation

MeoMix
Copy link

@MeoMix MeoMix commented Sep 3, 2015

Currently, when copying a file from src to dest with grunt-contrib-copy the last modified time of the file is not updated.

It would be nice to have the ability to force updating this value as to play nice with grunt:newer. See: tschaub/grunt-newer#84

This PR introduces a new option to, mtimeUpdate which, if set to true, will force the copied file's mtime to be set to the current time.

This will allow forcing dest file modified time to update without needing to explicitly touch file with another task.
@vladikoff vladikoff closed this Mar 4, 2016
@MeoMix
Copy link
Author

MeoMix commented Mar 4, 2016

Any reason for closing without discussion?

@vladikoff
Copy link
Member

Hey @MeoMix could you rebase this PR and add documentation for the options under docs/ ?

@MeoMix
Copy link
Author

MeoMix commented Mar 4, 2016

Sure. I'll try and take a look at it this weekend to ensure it's still necessary/useful. Thanks!

@leszekhanusz
Copy link

It took me a lot of time to notice that the mtime was not modified and I wanted to know why the Makefile was running the task multiple times. It is quite sad to see that a PR existed to fix this but was not merged more than 4 years later.

Base automatically changed from master to main March 22, 2021 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants