Revision: 73192
          http://sourceforge.net/p/brlcad/code/73192
Author:   starseeker
Date:     2019-05-27 14:21:47 +0000 (Mon, 27 May 2019)
Log Message:
-----------
This is a simple utility for getting the git timestamp directly from an SVN 
string, useful when we need to assemble a git commit fi file by hand.  Just 
take the svn timestamp as an arg.

Modified Paths:
--------------
    brlcad/trunk/misc/repoconv/svnfexport/svn_date.cxx

Modified: brlcad/trunk/misc/repoconv/svnfexport/svn_date.cxx
===================================================================
--- brlcad/trunk/misc/repoconv/svnfexport/svn_date.cxx  2019-05-27 14:06:43 UTC 
(rev 73191)
+++ brlcad/trunk/misc/repoconv/svnfexport/svn_date.cxx  2019-05-27 14:21:47 UTC 
(rev 73192)
@@ -83,15 +83,14 @@
     return std::to_string(ssec) + std::string(" +0000");
 }
 
-#if 1
 int
-main()
+main(int argc, const char **argv)
 {
-    const std::string tstamp("1989-10-31T08:48:58.000000Z");
+    //const std::string tstamp("1989-10-31T08:48:58.000000Z");
+    const std::string tstamp(argv[1]);
     std::cout << tstamp << "\n";
     std::cout << "converted time: " << svn_time_to_git_time(tstamp.c_str()) << 
"\n";
 }
-#endif
 
 // Local Variables:
 // tab-width: 8

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to