xaizek / rocketgit (License: AGPLv3+) (since 2018-12-09)
Light and fast Git hosting solution suitable to serve both as a hub or as a personal code storage with its tickets, pull requests, API and much more.
Commit cda372cdb187782a1a1f8b0986c30fecbd0d0eb6

Deal with git log when binary files are involved

Till now an invalid parsing error was generated.

Author: Catalin(ux) M. BOIE
Author date (UTC): 2015-04-20 03:49
Committer: Catalin(ux) M. BOIE
Commit date (UTC): 2015-04-20 03:49
Tree: 3bcd0b2e1b9996d2dc71c2b285773a4482af0431
Parents: 5be3f9aeab3dbb0e1d1a0afc72302ec0a35104d3
File Lines added Lines deleted
inc/git.inc.php 4 0
inc/user/repo-page.php 1 1

File inc/git.inc.php changed (mode: 100644) (index c63f455..058ca02)
... ... function rg_git_diff2array($diff, &$extra)
580 580 continue; continue;
581 581 } }
582 582
583 if (strncmp($line, "Binary files", 12) == 0) {
584 continue;
585 }
586
583 587 if (strncmp($line, "index ", 6) == 0) { if (strncmp($line, "index ", 6) == 0) {
584 588 $rest = substr($line, 6); $rest = substr($line, 6);
585 589 $_t = explode(' ', $rest); $_t = explode(' ', $rest);

File inc/user/repo-page.php changed (mode: 100644) (index b2b7553..e1133d0)
... ... if (strcmp($_subop, "history") == 0) {
184 184 if ($log === FALSE) { if ($log === FALSE) {
185 185 $_repo_body .= rg_template("repo/not_init.html", $rg); $_repo_body .= rg_template("repo/not_init.html", $rg);
186 186 } else { } else {
187 rg_log_ml("DEBUG: log: " . print_r($log, TRUE));
187 //rg_log_ml("DEBUG: log: " . print_r($log, TRUE));
188 188 $_repo_body .= rg_git_log_template($log, "repo/log", $rg); $_repo_body .= rg_git_log_template($log, "repo/log", $rg);
189 189 } }
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://code.reversed.top/user/xaizek/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/rocketgit

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