Code Monkey home page Code Monkey logo

git-php's People

Watchers

 avatar

git-php's Issues

Code highlighting

Code highlighting sucks. I've tried various snippets from around the web
and none work right. php's highlight_string() works well for php code, but
not diffs or any other code. Now I don't highlight anything but php code
(and diffs that look like crap). I REALLY want code highlighting and line
numbering like gitweb.cgi has.

Original issue reported on code.google.com by [email protected] on 19 Feb 2007 at 4:56

commit summaries truncated all the time

What steps will reproduce the problem?
1. Follow a commitdiff link in a project

In the project summary (html_shortlog) page the commit comments are
truncated for visual reasons. If the user follows a commitdiff link with a
truncated comment it should be displayed in full on the commitdiff page.

I'm thinking remove the "Summary" all together in a commitdiff and give
more information on the particular commit

Original issue reported on code.google.com by [email protected] on 11 Feb 2007 at 5:44

Server does not response

What steps will reproduce the problem?
1. git clone http://zackb.org/git/git-php.git
2. server does now response





Original issue reported on code.google.com by [email protected] on 19 Feb 2008 at 7:51

git-tar-tree

Use git-tar-tree to build the tar.gz snapshots

Original issue reported on code.google.com by [email protected] on 22 Sep 2006 at 12:51

Is this still active?

Website is down and unable to clone? is this project still going or is it 
defunct?

slsmpb05:Desktop ws0sca$ git clone http://zackb.org/git/git-php.git
Initialized empty Git repository in /Users/ws0sca/Desktop/git-php/.git/
error: Couldn't resolve host 'zackb.org' while accessing 
http://zackb.org/git/git-php.git/info/refs

fatal: HTTP request failed

Original issue reported on code.google.com by [email protected] on 24 Sep 2009 at 6:59

Summary of merges

The name field when a commit is merged is messed up. must be that ghetto
parsing of git-commit

Original issue reported on code.google.com by [email protected] on 19 Sep 2006 at 6:25

Validate $repos

there are several ways invalid repo paths can get into $repos. Repos should
be verified to exist and then verified to be a valid git repo.

Original issue reported on code.google.com by [email protected] on 19 Feb 2007 at 5:00

Installation How to

I tried to install git-php, but there is no installation tutorial. 
However, i updated my repos-array with my repos-path, but it doesn't show
me the contents of my repos. A installation how to would be helpfull.
Are there any other steps to install git-php necessary?

Original issue reported on code.google.com by [email protected] on 21 Jan 2008 at 7:25

Code highlighting

Code highlighting sucks. I've tried various snippets from around the web
and none work right. php's highlight_string() works well for php code, but
not diffs or any other code. Now I don't highlight anything but php code
(and diffs that look like crap). I REALLY want code highlighting and line
numbering like gitweb.cgi has.

Original issue reported on code.google.com by [email protected] on 19 Feb 2007 at 4:57

Absolute path to git

need to add the full path to the git programs. Currently the git-php
assumes they are in $PATH.

Original issue reported on code.google.com by [email protected] on 22 Sep 2006 at 12:39

php5 compatibility

I just updated a little this script to make it work on php5 immediately ...
I send you the patch if you want :



Original issue reported on code.google.com by [email protected] on 4 Apr 2008 at 5:36

Attachments:

commit diff highlighting

In commitdiff or diff output scrap the hightlight_code() call and manually
set - lines to red color and + lines to green. Easier to read.

Original issue reported on code.google.com by [email protected] on 11 Sep 2006 at 8:49

Absolute path to git

need to add the full path to the git programs. Currently the git-php
assumes they are in $PATH.

Original issue reported on code.google.com by [email protected] on 22 Sep 2006 at 12:41

Disable download on gitphp

Hi I add this little feature to git-php.
I know that probably this project is died but I like it powerful and easy
configuration.

Allow the end user to disable tar.zg/zip snapshot download.

diff --git a/config.php b/config.php
index 1bff39a..b167bfb 100644
--- a/config.php
+++ b/config.php
@@ -18,15 +18,18 @@

        /* True if committing is active */
        $git_commiting_active = true;
+
+       /* True if you like to allow tar.gz/zip download */
+       $git_download_active = true;

        /* E-mail address to notify about the bundles */
        $emailaddress = "[email protected]";

diff --git a/git.php b/git.php
index ea83754..b69ab84 100644
--- a/git.php
+++ b/git.php
@@ -187,7 +187,7 @@ if (isset($_GET['dl']))
     write_plain();
   else if ( in_array( $_GET['dl'], $icondesc, true ) )
     write_img_png($_GET['dl']);
-  else if ($_GET['dl'] == 'dlfile' )
+  else if ($_GET['dl'] == 'dlfile' && $git_download_active)
     write_dlfile();
   else if ($_GET['dl'] == 'rss2')
     write_rss2();
@@ -529,7 +529,8 @@ function html_home()
   echo "<th>Description</th>";
   echo "<th>Owner</th>";
   echo "<th>Last Changed</th>";
-  echo "<th>Download</th>";
+  if ($git_download_active)
+      echo "<th>Download</th>";
   echo "<th>Hits</th>";
   echo "</tr>\n";
   foreach ($repos as $repo)   {
@@ -540,7 +541,10 @@ function html_home()
     $proj = get_project_link($repo);
     $dlt = get_project_link($repo, "targz");
     $dlz = get_project_link($repo, "zip");
-    echo
"<tr><td>$proj</td><td>$desc</td><td>$owner</td><td>$last</td><td>$dlt
+    echo "<tr><td>$proj</td><td>$desc</td><td>$owner</td><td>$last</td>";
+    if ($git_download_active) 
+        echo "<td>$dlt | $dlz</td>";
+    echo "<td> ( $today / $total ) </td></tr>\n";
   }
   echo "</table>";
 }
@@ -583,9 +587,9 @@ function get_project_link($repo, $type = false,
$tag="HEAD")
   $path = basename($repo);
   if (!$type)
     return "<a href=\"".sanitized_url()."p=$path\">$path</a>";
-  else if ($type == "targz")
+  else if ($type == "targz" && $git_download_active)
     return html_ahref( array( 'p'=>$path, 'dl'=>'targz', 'h'=>$tag )
).".tar.gz
-  else if ($type == "zip")
+  else if ($type == "zip" && $git_download_active)
     return html_ahref( array( 'p'=>$path, 'dl'=>'zip', 'h'=>$tag )
).".zip</a>"
 }


Original issue reported on code.google.com by [email protected] on 26 Apr 2010 at 11:34

Demo link broken

The "Demo" link on the project homepage is broken. It leads to a spam page.

Original issue reported on code.google.com by [email protected] on 24 Oct 2013 at 9:32

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.