List of commits:
Subject Hash Author Date (UTC)
Style changes. 87e30b1df29b7c6efa438be1cf369192a8068655 Catalin(ux) M. BOIE 2012-02-19 22:50:22
Bulk 0923407bff68a58a0b7b034f8a6b4489ece5b237 Catalin(ux) M. BOIE 2012-02-12 22:21:44
Bulk update 30310488bca37cefeba96b52b71c9c3e72c32907 Catalin(ux) M. BOIE 2011-12-15 23:34:03
Profiling tests. afd1df2940fe440cde9b8ede988ff24c051a10d6 Catalin(ux) M. BOIE 2011-11-03 22:10:13
More bulk updates. a2a2e2545eaad61d0c675ea2afb801f207534515 Catalin(ux) M. BOIE 2011-11-03 22:09:34
Another round of bulk updates. 45bb00a88c420d439b4dd19971808722e4a70895 Catalin(ux) M. BOIE 2011-10-24 22:31:14
Bulk update. Mostly css. 04734cd7cfc4fd4ec55dad70a3490f3065027639 Catalin(ux) M. BOIE 2011-10-03 23:18:26
Added rg_exec function and converted all calls from exec to rg_exec. 097157e5886dace2b9f67ca238a1063a3baff4a0 Catalin(ux) M. BOIE 2011-09-28 03:28:49
Another round of bulk updates cb9dbb75518ab3c214167646197ca7eb0de8e4e6 Catalin(ux) M. BOIE 2011-09-26 19:22:12
Bulk updates cad0c710542dc3fb072268eba40b0abe11217fa9 Catalin(ux) M. BOIE 2011-09-21 20:25:23
Bulk changes. d5274ef5f261086a2af6bd19ac04061bb3d55584 Catalin(ux) M. BOIE 2011-09-15 20:16:46
Store the fist instalation date in 'state' table. e4ba8a9239e72e8de5eed0b3bb1f2a5f2d429105 Catalin(ux) M. BOIE 2011-08-31 16:14:44
Bulk changes. 645d3deb19e399c05a8b14dd88c5151520482b6a Catalin(ux) M. BOIE 2011-08-25 20:39:25
Another bulk update - css related. 3867eb5deadf9827450b40a53efe6c83f518a07b Catalin(ux) M. BOIE 2011-07-26 22:01:13
Bulk update. 9d680f000b7c486be4664e1cb944f424c977c874 Catalin(ux) M. BOIE 2011-07-25 19:06:14
Some ssh and anonymous rights fixes. 9bb20c348a4933056d8f67bd151eb35cf0325835 Catalin(ux) M. BOIE 2011-07-05 22:00:00
Another round of fixes. 45749c46f79f75b29d83ee2d115f987c7765e8c4 Catalin(ux) M. BOIE 2011-07-05 20:01:10
Another round of bulk updates. 6077961d5c443b8a830dc08b3b0ebf37eaf594b3 Catalin(ux) M. BOIE 2011-07-04 22:12:40
Bump version to 0.7. e44064dab5c6f2fa625bb121483a51ec1960cad9 Catalin(ux) M. BOIE 2011-07-03 16:26:47
Lots of changes. 8876190d55995ed98a528edc786e0e9136a0535d Catalin(ux) M. BOIE 2011-07-03 00:03:42
Commit 87e30b1df29b7c6efa438be1cf369192a8068655 - Style changes.
Author: Catalin(ux) M. BOIE
Author date (UTC): 2012-02-19 22:50
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2012-02-19 22:50
Parent(s): 0923407bff68a58a0b7b034f8a6b4489ece5b237
Signer:
Signing key:
Signing status: N
Tree: 25dc252776e8b464a0d5760034fd67e619ace33a
File Lines added Lines deleted
TODO 1 0
inc/git.inc.php 27 14
inc/user/repo-page.php 2 2
inc/user/repo/rights/README 1 0
inc/util.inc.php 10 0
root/themes/default/main.css 9 0
root/themes/default/repo/diff.html 2 2
File TODO changed (mode: 100644) (index 8eaf29a..0f85ce8)
1 1 == BEFORE FIRST RELEASE! == == BEFORE FIRST RELEASE! ==
2 [ ] [Mon Feb 13 02:12:22 2012] [error] [client 2002:2e66:5950:79:72f3:95ff:fee1:73af] PHP Notice: Undefined index: organization in /usr/share/rocketgit/inc/util.inc.php on line 115, referer: http://rg.embedromix.ro:8000/user/catab/rocketgit/admin/rights?edit_uid=3
2 3 [ ] $blocks = explode("@@left@@-=ROCKETGIT=-@@left@@", $a) - seems that \0 is replaced! [ ] $blocks = explode("@@left@@-=ROCKETGIT=-@@left@@", $a) - seems that \0 is replaced!
3 4 [ ] rg_exec! [ ] rg_exec!
4 5 [ ] Take care of PHP's time limit to not interfere with the rest. [ ] Take care of PHP's time limit to not interfere with the rest.
File inc/git.inc.php changed (mode: 100644) (index 008151d..abaa6aa)
... ... function rg_git_stats($log)
594 594 * Nice diff per file * Nice diff per file
595 595 * Outputs the result of replacing variables in a template with real variables * Outputs the result of replacing variables in a template with real variables
596 596 * @a - output of rg_git_diff2array[index] * @a - output of rg_git_diff2array[index]
597 * TODO: Switch to r66_template_table?
597 598 */ */
598 599 function rg_git_diff($a, $template_file) function rg_git_diff($a, $template_file)
599 600 { {
600 601 rg_log("git_diff: a: " . print_r($a, TRUE)); rg_log("git_diff: a: " . print_r($a, TRUE));
601 602
602 $ret = "";
603 $ret = "<div class=\"diff\">\n";
603 604
604 $template = @file_get_contents($template_file);
605 if ($template === FALSE)
606 return "Error: cannot load template ($template_file)!";
605 $template = rg_template($template_file, array());
607 606
607 // for each file changed
608 608 foreach ($a as $fileindex => $finfo) { foreach ($a as $fileindex => $finfo) {
609 609 if (!isset($finfo['file'])) if (!isset($finfo['file']))
610 610 rg_log("BAD finfo:" . print_r($finfo, TRUE)); rg_log("BAD finfo:" . print_r($finfo, TRUE));
611 $f = $finfo['file'];
611
612 612 $ret .= "<br />\n"; $ret .= "<br />\n";
613 $ret .= "<b>";
613
614 $f = htmlspecialchars($finfo['file']);
615 $ret .= "<a name=\"$f\">\n";
616
617 $ret .= "<table class=\"chunk\" width=\"100%\">\n";
618 $ret .= "<tr style=\"border: 1px; background: #dddddd\"><td colspan=\"4\">";
614 619 if (strstr($finfo['flags'], "N")) if (strstr($finfo['flags'], "N"))
615 $ret .= "file [$f] added\n";
620 $ret .= "File <b>$f</b> added";
616 621 else if (strstr($finfo['flags'], "D")) else if (strstr($finfo['flags'], "D"))
617 $ret .= "file [$f] deleted:\n";
622 $ret .= "File <b>$f</b> deleted:";
618 623 else else
619 $ret .= "file [$f] changed:\n";
620 $ret .= "</b>";
624 $ret .= "File <b>$f</b> changed:";
625 $ret .= "</td></tr>\n";
621 626
627 $empty_line = "";
622 628 foreach ($finfo['chunks'] as $chunk => $ci) { foreach ($finfo['chunks'] as $chunk => $ci) {
623 $ret .= "<br />\n";
624 $ret .= "Section [" . $ci['section'] . "] ($chunk):<br />\n";
625 $ret .= "<table class=\"diff\">\n";
629 $ret .= $empty_line;
630 $empty_line = "<tr style=\"border: 1px\"><td colspan=\"4\">&nbsp;</td></tr>\n";
631 if (!empty($ci['section'])) {
632 $ret .= "<tr>\n";
633 $ret .= " <td class=\"numbers\">...</td>\n";
634 $ret .= " <td class=\"numbers\">...</td>\n";
635 $ret .= " <td style=\"background: #dddddd\" colspan=\"2\"><i>" . $ci['section'] . "</i></td>\n";
636 $ret .= "</tr>\n";
637 }
626 638
627 639 $line_no_left = $ci['from']; $line_no_left = $ci['from'];
628 640 $line_no_right = $ci['to']; $line_no_right = $ci['to'];
 
... ... function rg_git_diff($a, $template_file)
666 678 $v = preg_replace("/@@right_color@@/", $right_color, $v); $v = preg_replace("/@@right_color@@/", $right_color, $v);
667 679 $ret .= $v; $ret .= $v;
668 680 } }
669 $ret .= "</table>\n";
670 681 } }
682 $ret .= "</table>\n";
671 683 } }
684 $ret .= "</div>\n";
672 685
673 686 return $ret; return $ret;
674 687 } }
File inc/user/repo-page.php changed (mode: 100644) (index 9f8c886..9ea8923)
... ... $can_admin = (rg_repo_allow($db, $ri, $rg_ui, "A") === TRUE) ? 1 : 0;
34 34
35 35 $_more = array( $_more = array(
36 36 "owner" => $rr['user'], "owner" => $rr['user'],
37 "url_user" => rg_re_userpage($rg_ui),
38 "url_repo" => rg_re_repopage($rg_ui, $rr['repo']),
37 "url_user" => rg_re_userpage($ui),
38 "url_repo" => rg_re_repopage($ui, $rr['repo']),
39 39 "ssh" => rg_re_repo_ssh($rr), "ssh" => rg_re_repo_ssh($rr),
40 40 "git" => rg_re_repo_git($rr), "git" => rg_re_repo_git($rr),
41 41 "can_admin" => $can_admin "can_admin" => $can_admin
File inc/user/repo/rights/README added (mode: 100644) (index 0000000..ba9d47c)
1 rights.php seems to do the same with /inc/repo/repo.php!
File inc/util.inc.php changed (mode: 100644) (index 9b0d567..292f3e2)
... ... function rg_re_post($op)
111 111
112 112 function rg_re_userpage($ui) function rg_re_userpage($ui)
113 113 { {
114 if (!isset($ui['organization'])) {
115 rg_internal_error("rg_re_userpage called with wrong ui!");
116 exit(1);
117 }
118
114 119 $prefix = ""; $prefix = "";
115 120 if ($ui['organization'] == 0) if ($ui['organization'] == 0)
116 121 $prefix = "/user"; $prefix = "/user";
 
... ... function rg_re_userpage($ui)
125 130
126 131 function rg_re_repopage($ui, $repo) function rg_re_repopage($ui, $repo)
127 132 { {
133 if (!isset($ui['organization'])) {
134 rg_internal_error("rg_re_repopage called with wrong ui!");
135 exit(1);
136 }
137
128 138 $s = rg_re_userpage($ui) . "/" . $repo; $s = rg_re_userpage($ui) . "/" . $repo;
129 139
130 140 if (isset($_REQUEST['rwe'])) if (isset($_REQUEST['rwe']))
File root/themes/default/main.css changed (mode: 100644) (index 89ebd97..609262f)
... ... label {
163 163 .diff { .diff {
164 164 } }
165 165
166 .chunk {
167 margin-left: 30px;
168 border: 0 none;
169 }
170
171 .numbers {
172 margin-right: 1px;
173 text-align: right;
174 }
File root/themes/default/repo/diff.html changed (mode: 100644) (index a2a94e5..1cca337)
1 1 <tr> <tr>
2 <td width="5%">@@line_left@@</td>
3 <td width="5%">@@line_right@@</td>
2 <td width="5%" class="numbers">@@line_left@@</td>
3 <td width="5%" class="numbers">@@line_right@@</td>
4 4 <td width="45%" bgcolor="@@left_color@@">@@left@@</td> <td width="45%" bgcolor="@@left_color@@">@@left@@</td>
5 5 <td width="45%" bgcolor="@@right_color@@">@@right@@</td> <td width="45%" bgcolor="@@right_color@@">@@right@@</td>
6 6 </tr> </tr>
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rocketgit

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main