public
Description: Syncs one directory to another (example: a git project to an svn repo)
Clone URL: git://github.com/technoweenie/duplikate.git
osteele (author)
Sun Apr 06 08:11:54 -0700 2008
commit  dc4c73182bd56c9e765e983e5fa8ce2810131450
tree    ac690f8709df384db4baf167abf646ff19fef7d9
parent  17034859650054beec134a5e04d8c51de259cfe8
duplikate / README
100644 20 lines (13 sloc) 0.475 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
duplikate
=========
 
# process the differences between the two directories:
 
dupe = Duplikate.process 'my-git-repo', 'my-svn-repo'
dupe.added_files #=> [..., ...]
dupe.added_directories #=> [..., ...]
dupe.deleted_files #=> [..., ...]
dupe.deleted_directories #=> [..., ...]
dupe.existing_files #=> [..., ...]
 
dupe.report
 
# Or actually make the changes and commit in svn:
 
Duplikate.execute 'my-git-repo', 'my-svn-repo'
 
TODO: Actual real-world usage!