aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-08-23 21:12:55 +0200
committern-peugnet <n.peugnet@free.fr>2021-08-23 21:12:55 +0200
commitb070eae35c1e7a4996b90208153d01f2be08d588 (patch)
tree67069c772a376fcd7da199c6bb821cc7261cd523 /main.go
parenta67dfdd993dee93950c4b60e99ab6ca92d842072 (diff)
downloaddna-backup-b070eae35c1e7a4996b90208153d01f2be08d588.tar.gz
dna-backup-b070eae35c1e7a4996b90208153d01f2be08d588.zip
try bsdiff and rework some of the API
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/main.go b/main.go
index f70faa4..691ff25 100644
--- a/main.go
+++ b/main.go
@@ -14,7 +14,6 @@ func main() {
source := os.Args[1]
dest := os.Args[2]
-
- os.MkdirAll(dest, 0775)
- Commit(source, dest)
+ repo := NewRepo(dest)
+ repo.Commit(source)
}