-int main() {
-// string file_string;
-// do {
-// file_string.clear();
-// for( int c = cin.get(); 0 != c && ! cin.eof(); c = cin.get() ) {
-// file_string.push_back( c );
-// }
-// if( 0 != file_string.size() ) {
-// // Example entry
-// // type perms user group size datemodified name (7 total)
-// // f 0600 cnb cnb 424 20051015205340 ./.git/index
-// vector<string> values = split( file_string, ' ', 7 );
-// }
-// } while( ! cin.eof() );
-
- sql_experimenting();
+ for( file_set::iterator i = previous_files.begin(); i != previous_files.end(); ++i ) {
+ cout << (*i)->getFileName() << endl;
+ }
+
+ // Now divide the two sets into three sets (union and set differences)
+ FileDataPtrCmp cmp;
+
+ file_set new_set;
+ set_difference( current_files.begin(), current_files.end(),
+ previous_files.begin(), previous_files.end(),
+ inserter( new_set, new_set.begin() ),
+ cmp );
+
+ file_set deleted_set;
+ set_difference( previous_files.begin(), previous_files.end(),
+ current_files.begin(), current_files.end(),
+ inserter( deleted_set, deleted_set.begin() ),
+ cmp );
+
+ // previous_files *should* definitely be the first set here
+ file_set common_set;
+ set_difference( previous_files.begin(), previous_files.end(),
+ current_files.begin(), current_files.end(),
+ inserter( common_set, common_set.begin() ),
+ cmp );