Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorxofyarg <xofyarg@users.noreply.github.com>2017-04-22 23:38:54 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-04-22 23:38:54 +0300
commitb5b6e81c0269abf9b0f4bc6a127744a25344e5c6 (patch)
tree726ffb2aeb2ddb86b4f426a25d03b73efcb04e46 /source
parent90d3fbf1da93a279cfe994a226ae82cf5441deab (diff)
hugolib: Ignore non-source files on partial rebuild
Partial rebuild does not have the same logic as normal rebuild on selecting which file to build. This change makes it possible to share the file select logic between two kinds of build. Fix #3325.
Diffstat (limited to 'source')
-rw-r--r--source/filesystem.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/filesystem.go b/source/filesystem.go
index a13128144..ceea96ea5 100644
--- a/source/filesystem.go
+++ b/source/filesystem.go
@@ -90,7 +90,7 @@ func (f *Filesystem) captureFiles() {
return nil
}
- b, err := f.shouldRead(filePath, fi)
+ b, err := f.ShouldRead(filePath, fi)
if err != nil {
return err
}
@@ -118,7 +118,7 @@ func (f *Filesystem) captureFiles() {
}
-func (f *Filesystem) shouldRead(filePath string, fi os.FileInfo) (bool, error) {
+func (f *Filesystem) ShouldRead(filePath string, fi os.FileInfo) (bool, error) {
if fi.Mode()&os.ModeSymlink == os.ModeSymlink {
link, err := filepath.EvalSymlinks(filePath)
if err != nil {