@@ -77,6 +77,8 @@ void GourceSettings::help(bool extended_help) {
7777 printf (" --realtime Realtime playback speed\n " );
7878 printf (" --no-time-travel Use the time of the last commit if the\n " );
7979 printf (" time of a commit is in the past\n " );
80+ printf (" --author-time Use the timestamp of the author instead of\n " );
81+ printf (" the timestamp of the committer\n " );
8082 printf (" -c, --time-scale SCALE Change simulation time scale (default: 1.0)\n " );
8183 printf (" -e, --elasticity FLOAT Elasticity of nodes (default: 0.0)\n\n " );
8284
@@ -274,6 +276,7 @@ GourceSettings::GourceSettings() {
274276 arg_types[" file-extensions" ] = " bool" ;
275277 arg_types[" file-extension-fallback" ] = " bool" ;
276278 arg_types[" fixed-user-size" ] = " bool" ;
279+ arg_types[" author-time" ] = " bool" ;
277280 arg_types[" key" ] = " bool" ;
278281 arg_types[" ffp" ] = " bool" ;
279282
@@ -395,6 +398,7 @@ void GourceSettings::setGourceDefaults() {
395398 dont_stop = false ;
396399 no_time_travel = false ;
397400 fixed_user_size = false ;
401+ author_time = false ;
398402
399403 show_key = false ;
400404
@@ -1378,6 +1382,10 @@ void GourceSettings::importGourceSettings(ConfFile& conffile, ConfSection* gourc
13781382 fixed_user_size = true ;
13791383 }
13801384
1385+ if (gource_settings->getBool (" author-time" )) {
1386+ author_time = true ;
1387+ }
1388+
13811389 if ((entry = gource_settings->getEntry (" max-files" )) != 0 ) {
13821390
13831391 if (!entry->hasValue ()) conffile.entryException (entry, " specify max-files (number)" );
0 commit comments