From c22c39c962a5cd2eb5c81d3e377aacdeffa4b9aa Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Fri, 15 Nov 2024 12:46:00 +1100 Subject: [PATCH] update comment --- internal/watch/filehash.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/watch/filehash.go b/internal/watch/filehash.go index 2b21afe0a..a9621b570 100644 --- a/internal/watch/filehash.go +++ b/internal/watch/filehash.go @@ -60,8 +60,9 @@ func CompareFileHashes(oldFiles, newFiles FileHashes) []FileChange { return changes } -// ComputeFileHashes computes the SHA256 hash of all (non-git-ignored) files in -// the given directory. +// ComputeFileHashes computes the SHA256 hash of all files in the given directory. +// +// If skipGitIgnoredFiles is true, files that are ignored by git will be skipped. func ComputeFileHashes(dir string, skipGitIgnoredFiles bool, patterns []string) (FileHashes, error) { // Watch paths are allowed to be outside the deploy directory. fileHashes := make(FileHashes)