From 67336355c3b6f90e11f95f1b68766255e94a2db7 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Mon, 18 Dec 2023 17:57:46 +0100 Subject: Update comments --- main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'main.go') 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 } -- cgit v1.2.3-70-g09d2