diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-12-18 17:57:46 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-12-18 17:57:46 +0100 |
commit | 67336355c3b6f90e11f95f1b68766255e94a2db7 (patch) | |
tree | 8d7f01886edec211eedc07b9d353bcabbe011d39 /main.go | |
parent | c471a64ab8a4d3e90fb0050b5b4f68a187c2b02e (diff) | |
download | gallery-67336355c3b6f90e11f95f1b68766255e94a2db7.tar.gz gallery-67336355c3b6f90e11f95f1b68766255e94a2db7.tar.xz gallery-67336355c3b6f90e11f95f1b68766255e94a2db7.zip |
Update comments
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 } |