From db0e9d1130dfd212ca6f2e862b8b9a3b875a4f1b Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Mon, 24 Jun 2013 08:24:20 -0400 Subject: Restrict the sync files to what user specified If the user doesn't specify a set of files to sync then the entire set of dotfiles is assumed. There is an obvious bug here, as user-passed strings are not yet converted to dotfile objects. --- dotfiles/core.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dotfiles/core.py b/dotfiles/core.py index d13c9f4..8ef0782 100644 --- a/dotfiles/core.py +++ b/dotfiles/core.py @@ -187,7 +187,11 @@ class Dotfiles(object): """Synchronize this repository, creating and updating the necessary symbolic links.""" - for dotfile in self.dotfiles: + # unless a set of files is specified, operate on all files + if not files: + files = self.dotfiles + + for dotfile in files: dotfile.sync(force) def add(self, files): -- cgit v1.2.3