Browse code

Add tab to draw a graphical representation of the commit history

Guillaume CAMUS authored on12/10/2014 16:09:14
Showing1 changed files
... ...
@@ -9,5 +9,6 @@ $app->mount('', new GitList\Controller\BlobController());
9 9
 $app->mount('', new GitList\Controller\CommitController());
10 10
 $app->mount('', new GitList\Controller\TreeController());
11 11
 $app->mount('', new GitList\Controller\NetworkController());
12
+$app->mount('', new GitList\Controller\TreeGraphController());
12 13
 
13 14
 return $app;
Browse code

Merge remote-tracking branch 'upstream/master'

Lukas Domnick authored on06/06/2013 05:18:02
Showing0 changed files
Browse code

Major refactoring of the codebase, specially in the directory scanning parts.

I have removed the directory management features from Gitter and ported them to GitList,
since they are application-specific logic. I was unhappy with the way directories and multiple
directories were handled, so i altered almost everything.

The tests are OK, but the coverage is not good. This means that i'll need som help from all
GitList users that are actively testing the development version with multiple directories.

I have removed the directory caching feature for now, it will be re-implemented soon.

Klaus Silveira authored on06/01/2013 15:51:25
Showing1 changed files
... ...
@@ -1,13 +1,5 @@
1 1
 <?php
2 2
 
3
-if (!isset($config)) {
4
-    die("No configuration object provided.");
5
-}
6
-
7
-if (!is_writable(__DIR__ . DIRECTORY_SEPARATOR . 'cache')) {
8
-    die(sprintf('The "%s" folder must be writable for GitList to run.', __DIR__ . DIRECTORY_SEPARATOR . 'cache'));
9
-}
10
-
11 3
 // Startup and configure Silex application
12 4
 $app = new GitList\Application($config, __DIR__);
13 5
 
Browse code

Merge remote-tracking branch 'upstream/master'

Conflicts:
src/GitList/Git/Repository.php

Lukas Domnick authored on05/12/2013 17:47:37
Showing0 changed files
Browse code

Minor fixes and path checks

Klaus Silveira authored on05/06/2013 01:43:41
Showing1 changed files
... ...
@@ -4,32 +4,17 @@ if (!isset($config)) {
4 4
     die("No configuration object provided.");
5 5
 }
6 6
 
7
-$repositories = $config->get('git', 'repositories');
8
-
9
-if (!is_array($repositories)) {
10
-    # Convert the single item to an array - this is the internal handling
11
-    $repositories  = array($repositories);
12
-}
13
-
14
-$tmp_arr = array();
15
-foreach ($repositories as $repo) {
16
-    $tmp = rtrim($repo, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
17
-    $tmp_arr []= $tmp;
7
+if (!is_writable(__DIR__ . DIRECTORY_SEPARATOR . 'cache')) {
8
+    die(sprintf('The "%s" folder must be writable for GitList to run.', __DIR__ . DIRECTORY_SEPARATOR . 'cache'));
18 9
 }
19
-$repositories = $tmp_arr;
20
-
21
-
22 10
 
23 11
 // Startup and configure Silex application
24 12
 $app = new GitList\Application($config, __DIR__);
25 13
 
26
-
27 14
 // Mount the controllers
28 15
 $app->mount('', new GitList\Controller\MainController());
29 16
 $app->mount('', new GitList\Controller\BlobController());
30 17
 $app->mount('', new GitList\Controller\CommitController());
31 18
 $app->mount('', new GitList\Controller\TreeController());
32 19
 
33
-
34 20
 return $app;
35
-
Browse code

Got the first prototypal network graph working.

Lukas Domnick authored on03/21/2013 23:12:24
Showing1 changed files
... ...
@@ -14,5 +14,6 @@ $app->mount('', new GitList\Controller\MainController());
14 14
 $app->mount('', new GitList\Controller\BlobController());
15 15
 $app->mount('', new GitList\Controller\CommitController());
16 16
 $app->mount('', new GitList\Controller\TreeController());
17
+$app->mount('', new GitList\Controller\NetworkController());
17 18
 
18 19
 return $app;
Browse code

Gitlist php code compliant with PSR-1 and PSR-2.

Wim Rijnders authored on02/05/2013 10:27:10
Showing1 changed files
... ...
@@ -6,15 +6,15 @@ if (!isset($config)) {
6 6
 
7 7
 $repositories = $config->get('git', 'repositories');
8 8
 
9
-if ( !is_array( $repositories ) ) {
10
-	# Convert the single item to an array - this is the internal handling
11
-	$repositories  = array( $repositories );
9
+if (!is_array($repositories)) {
10
+    # Convert the single item to an array - this is the internal handling
11
+    $repositories  = array($repositories);
12 12
 }
13 13
 
14 14
 $tmp_arr = array();
15
-foreach( $repositories as $repo ) {
16
-	$tmp = rtrim($repo, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
17
-	$tmp_arr []= $tmp;
15
+foreach ($repositories as $repo) {
16
+    $tmp = rtrim($repo, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
17
+    $tmp_arr []= $tmp;
18 18
 }
19 19
 $repositories = $tmp_arr;
20 20
 
... ...
@@ -31,5 +31,5 @@ $app->mount('', new GitList\Controller\CommitController());
31 31
 $app->mount('', new GitList\Controller\TreeController());
32 32
 
33 33
 
34
-
35 34
 return $app;
35
+
Browse code

Figured out how use repository hash. Not fully implemented.

Wim Rijnders authored on12/03/2012 07:26:04
Showing1 changed files
... ...
@@ -18,16 +18,18 @@ foreach( $repositories as $repo ) {
18 18
 }
19 19
 $repositories = $tmp_arr;
20 20
 
21
-$config->set('git', 'repositories', $repositories);
22 21
 
23 22
 
24 23
 // Startup and configure Silex application
25 24
 $app = new GitList\Application($config, __DIR__);
26 25
 
26
+
27 27
 // Mount the controllers
28 28
 $app->mount('', new GitList\Controller\MainController());
29 29
 $app->mount('', new GitList\Controller\BlobController());
30 30
 $app->mount('', new GitList\Controller\CommitController());
31 31
 $app->mount('', new GitList\Controller\TreeController());
32 32
 
33
+
34
+
33 35
 return $app;
Browse code

Multiple root dir's recursion. Works fine, using them per repo needs to be figured out.

Wim Rijnders authored on12/02/2012 19:42:21
Showing1 changed files
... ...
@@ -4,7 +4,22 @@ if (!isset($config)) {
4 4
     die("No configuration object provided.");
5 5
 }
6 6
 
7
-$config->set('git', 'repositories', rtrim($config->get('git', 'repositories'), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR);
7
+$repositories = $config->get('git', 'repositories');
8
+
9
+if ( !is_array( $repositories ) ) {
10
+	# Convert the single item to an array - this is the internal handling
11
+	$repositories  = array( $repositories );
12
+}
13
+
14
+$tmp_arr = array();
15
+foreach( $repositories as $repo ) {
16
+	$tmp = rtrim($repo, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
17
+	$tmp_arr []= $tmp;
18
+}
19
+$repositories = $tmp_arr;
20
+
21
+$config->set('git', 'repositories', $repositories);
22
+
8 23
 
9 24
 // Startup and configure Silex application
10 25
 $app = new GitList\Application($config, __DIR__);
Browse code

Die when no config object provided

Just a friendlier error message, when `boot.php` is included without a
global `$config` object being set.

Christian Schorn authored on10/31/2012 17:14:20
Showing1 changed files
... ...
@@ -1,7 +1,9 @@
1 1
 <?php
2 2
 
3
-// Load configuration
4
-$config = GitList\Config::fromFile('config.ini');
3
+if (!isset($config)) {
4
+    die("No configuration object provided.");
5
+}
6
+
5 7
 $config->set('git', 'repositories', rtrim($config->get('git', 'repositories'), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR);
6 8
 
7 9
 // Startup and configure Silex application
Browse code

Add `fromFile` factory method to `GitList\Config`

Christian Schorn authored on10/31/2012 17:03:42
Showing1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 <?php
2 2
 
3 3
 // Load configuration
4
-$config = new GitList\Config('config.ini');
4
+$config = GitList\Config::fromFile('config.ini');
5 5
 $config->set('git', 'repositories', rtrim($config->get('git', 'repositories'), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR);
6 6
 
7 7
 // Startup and configure Silex application
Browse code

Much faster Windows detection

Klaus Silveira authored on09/10/2012 04:28:55
Showing1 changed files
... ...
@@ -1,9 +1,5 @@
1 1
 <?php
2 2
 
3
-if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' && !defined('WINDOWS_BUILD')) {
4
-    define('WINDOWS_BUILD', 1);
5
-}
6
-
7 3
 // Load configuration
8 4
 $config = new GitList\Config('config.ini');
9 5
 $config->set('git', 'repositories', rtrim($config->get('git', 'repositories'), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR);
Browse code

Fixed wrong path detection on Windows

Sebastiaan Stok authored on08/31/2012 09:34:02
Showing1 changed files
... ...
@@ -1,6 +1,6 @@
1 1
 <?php
2 2
 
3
-if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
3
+if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' && !defined('WINDOWS_BUILD')) {
4 4
     define('WINDOWS_BUILD', 1);
5 5
 }
6 6
 
... ...
@@ -17,4 +17,4 @@ $app->mount('', new GitList\Controller\BlobController());
17 17
 $app->mount('', new GitList\Controller\CommitController());
18 18
 $app->mount('', new GitList\Controller\TreeController());
19 19
 
20
-return $app;
21 20
\ No newline at end of file
21
+return $app;
Browse code

Windows support, fixes #26, #56 and #69

Implementing various workarounds and fixes to get GitList working fine
on Windows.

Klaus Silveira authored on08/17/2012 04:59:55
Showing1 changed files
... ...
@@ -1,5 +1,9 @@
1 1
 <?php
2 2
 
3
+if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
4
+    define('WINDOWS_BUILD', 1);
5
+}
6
+
3 7
 // Load configuration
4 8
 $config = new GitList\Config('config.ini');
5 9
 $config->set('git', 'repositories', rtrim($config->get('git', 'repositories'), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR);
Browse code

New architecture to make tests easier

Klaus Silveira authored on07/26/2012 06:42:29
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+// Load configuration
4
+$config = new GitList\Config('config.ini');
5
+$config->set('git', 'repositories', rtrim($config->get('git', 'repositories'), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR);
6
+
7
+// Startup and configure Silex application
8
+$app = new GitList\Application($config, __DIR__);
9
+
10
+// Mount the controllers
11
+$app->mount('', new GitList\Controller\MainController());
12
+$app->mount('', new GitList\Controller\BlobController());
13
+$app->mount('', new GitList\Controller\CommitController());
14
+$app->mount('', new GitList\Controller\TreeController());
15
+
16
+return $app;
0 17
\ No newline at end of file