DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:pageannotate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tips:pageannotate [2010-10-28 16:13] – created 195.222.9.197tips:pageannotate [2016-02-23 12:30] (current) – git refuses empty author field 89.67.9.85
Line 64: Line 64:
         list($rev, $host, $act, $pagename, $author)= explode("\t", $line);         list($rev, $host, $act, $pagename, $author)= explode("\t", $line);
         echo "rev[$rev]; host[$host]; act[$act]; pagename[$pagename]; author[$author]\n";         echo "rev[$rev]; host[$host]; act[$act]; pagename[$pagename]; author[$author]\n";
 +
 +        if ($author == '')
 +                $author = 'UNKNOWN';
  
         // hack to skip git looking up author names         // hack to skip git looking up author names
Line 74: Line 77:
                         xsys("git add $page");                         xsys("git add $page");
                 }                 }
-                echo "will fucking commit\n"; 
                 xsys("git commit --allow-empty --date $rev --author '$author' -m add $page");                 xsys("git commit --allow-empty --date $rev --author '$author' -m add $page");
                 break;                 break;
tips/pageannotate.txt · Last modified: 2016-02-23 12:30 by 89.67.9.85

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki