summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/main.go b/main.go
index 0a96007..5fdcd22 100644
--- a/main.go
+++ b/main.go
@@ -701,6 +701,7 @@ func (i *importer) Import(path string) error {
}
// cmdImport adds files to the "entry" table.
+// TODO: Consider making this copy rather than symlink images.
func cmdImport(args []string) error {
if len(args) < 1 {
return errors.New("usage: GD ROOT...")
@@ -754,7 +755,8 @@ func cmdImport(args []string) error {
return nil
}
-// cmdSync is like import, but clears the "entry" table beforehands.
+// cmdSync ensures the given (sub)roots are accurately reflected
+// in the database.
func cmdSync(args []string) error {
if len(args) < 1 {
return errors.New("usage: GD ROOT...")
@@ -763,7 +765,8 @@ func cmdSync(args []string) error {
return err
}
- // TODO: Should this run in a transaction?
+ // TODO: Probably make this run in a transaction,
+ // if only to get exclusivity.
return nil
}