commands/track: clarify verbose log messages

This commit is contained in:
Taylor Blau 2016-07-06 08:56:19 -06:00
parent 08862035ef
commit 26d3cc1571

@ -90,13 +90,17 @@ ArgsLoop:
// Since all `git-lfs track` calls are relative to the root of // Since all `git-lfs track` calls are relative to the root of
// the repository, the leading slash is simply removed for its // the repository, the leading slash is simply removed for its
// implicit counterpart. // implicit counterpart.
if trackVerboseLoggingFlag {
Print("Searching for files matching pattern: %s", pattern) Print("Searching for files matching pattern: %s", pattern)
}
gittracked, err := git.GetTrackedFiles(pattern) gittracked, err := git.GetTrackedFiles(pattern)
if err != nil { if err != nil {
LoggedError(err, "Error getting git tracked files") LoggedError(err, "Error getting git tracked files")
continue continue
} }
Print("Found %d files matching pattern: %s", len(gittracked), pattern) if trackVerboseLoggingFlag {
Print("Found %d files previously added to Git matching pattern: %s", len(gittracked), pattern)
}
now := time.Now() now := time.Now()
var matchedBlocklist bool var matchedBlocklist bool