Skip to content

Restore: optional --touch-affected-refs to touch refs affected by a restore - #1485

Merged
forki merged 1 commit into
fsprojects:masterfrom
cdrnet:touch-affected-project-files
Feb 29, 2016
Merged

forki merged 1 commit into
fsprojects:masterfrom
cdrnet:touch-affected-project-files

Conversation

@cdrnet

@cdrnet cdrnet commented Feb 22, 2016

Copy link
Copy Markdown
Member

Proposal how #1471 could be addressed, to help incremental build tools like MsBuild to detect the need to rebuild selective projects.

I'm not convinced Project.save true is the right approach though, since it could also affect the content of the project file. Maybe we should specifically add a Project.touch instead which guarantees the project file content remains exactly the same?

@cdrnet cdrnet changed the title Restore: optional --touch-affected-refs to touch refs affected by a restore [WIP] Restore: optional --touch-affected-refs to touch refs affected by a restore Feb 22, 2016
@cdrnet
cdrnet force-pushed the touch-affected-project-files branch from 66a7601 to b528ca4 Compare February 22, 2016 08:15
@cdrnet cdrnet changed the title [WIP] Restore: optional --touch-affected-refs to touch refs affected by a restore Restore: optional --touch-affected-refs to touch refs affected by a restore Feb 22, 2016
@forki

forki commented Feb 29, 2016

Copy link
Copy Markdown
Member

Project.touch sound s like a good change

forki added a commit that referenced this pull request Feb 29, 2016
Restore: optional --touch-affected-refs to touch refs affected by a restore
@forki
forki merged commit 347176c into fsprojects:master Feb 29, 2016
@cdrnet
cdrnet deleted the touch-affected-project-files branch March 1, 2016 05:42
forki pushed a commit that referenced this pull request Mar 1, 2016
… file content

This is a follow up to #1485 which introduced the optional --touch-affected-refs
parameter on restore. In the original implementation this caused the
project file to be saved forcefully, which could in some cases cause the
file content to change slightly (e.g. minor xml formatting).

With this change, the only effect of --touch-affected-refs will be a
modified last-write time file attribute.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants