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

Copy only the static files changed #1671

Closed
wants to merge 4 commits into from

Conversation

ffrizzo
Copy link
Contributor

@ffrizzo ffrizzo commented Dec 4, 2015

Update on the watcher copy static to copy only the changed files and add an flag forceSyncStatic to copy all statics always a static is changed
#1644 #1559

… the flag forceCopyStatic to always copy all static files when a file is changed
@CLAassistant
Copy link

CLA assistant check
All committers have accepted the CLA.

@ffrizzo ffrizzo changed the title #1644 #1559 Copy only the static files changed. Added the flag forceC… Copy only the static files changed. Added the flag forceCopyStatic to always copy all static files when a file is changed Dec 4, 2015
@ffrizzo ffrizzo closed this Dec 4, 2015
@ffrizzo ffrizzo reopened this Dec 4, 2015
@anthonyfok
Copy link
Member

Thank you for your contribution, @ffrizzo!

But before we continue, could you please read the Code Contribution Guideline and make the appropriate changes? (e.g. the git commit message). Many thanks!

Update on the watcher copy static to copy only the changed files and add an flag forceSyncStatic to copy all statics always a static is changed

See gohugoio#1644 gohugoio#1559
@ffrizzo ffrizzo changed the title Copy only the static files changed. Added the flag forceCopyStatic to always copy all static files when a file is changed Copy only the static files changed Dec 4, 2015
@@ -171,7 +172,7 @@ func initCoreCommonFlags(cmd *cobra.Command) {
cmd.Flags().BoolVar(&nitro.AnalysisOn, "stepAnalysis", false, "display memory and timing of different steps of the program")
cmd.Flags().BoolVar(&PluralizeListTitles, "pluralizeListTitles", true, "Pluralize titles in lists using inflect")
cmd.Flags().BoolVar(&PreserveTaxonomyNames, "preserveTaxonomyNames", false, `Preserve taxonomy names as written ("Gérard Depardieu" vs "gerard-depardieu")`)

cmd.Flags().BoolVarP(&ForceSync, "forceSyncStatic", "", true, "Copy all files when static is changed.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be default false

Update on the watcher copy static to copy only the
changed files and add an flag forceSyncStatic to
copy all statics always a static is changed

See gohugoio#1644 gohugoio#1559
syncer.SrcFs = hugofs.SourceFs
syncer.DestFs = hugofs.DestinationFS

publishDir := helpers.AbsPathify(viper.GetString("PublishDir")) + "/"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

os file separator

Update on the watcher copy static to copy only the
changed files and add an flag forceSyncStatic to
copy all statics always a static is changed

See gohugoio#1644 gohugoio#1559
@spf13
Copy link
Contributor

spf13 commented Dec 22, 2015

@bep This now looks good to me. Are you okay with me merging?

@bep
Copy link
Member

bep commented Dec 22, 2015

Sure.

@spf13
Copy link
Contributor

spf13 commented Dec 23, 2015

Merged as a291f3c

@spf13 spf13 closed this Dec 23, 2015
@anthonyfok anthonyfok mentioned this pull request Dec 28, 2015
@ffrizzo ffrizzo deleted the static-sync branch January 2, 2016 12:01
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants