Skip to content

Commit d2a66e7

Browse files
committed
Allow using several git repos
- improved description of config settings - set default value to empty string for $conf['repoPath'] and $conf['repoWorkDir'] - changed position of config setting 'autoDetermineRepos' to be listed before 'repoPath'
1 parent 8e783f4 commit d2a66e7

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

conf/default.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
* @author Wolfgang Gassler <[email protected]>
66
*/
77

8-
$conf['autoDetermineRepos'] = 1;
98
$conf['pushAfterCommit'] = 0;
109
$conf['periodicPull'] = 0;
1110
$conf['periodicMinutes'] = 60;
1211
$conf['commitPageMsg'] = 'Wiki page %page% changed with summary [%summary%] by %user%';
1312
$conf['commitPageMsgDel'] = 'Wiki page %page% deleted with reason [%summary%] by %user%';
1413
$conf['commitMediaMsg'] = 'Wiki media %media% uploaded by %user%';
1514
$conf['commitMediaMsgDel'] = 'Wiki media %media% deleted by %user%';
16-
$conf['repoPath'] = $GLOBALS['conf']['savedir'];
15+
$conf['autoDetermineRepos'] = 1;
16+
$conf['repoPath'] = ''; //$GLOBALS['conf']['savedir']
1717
$conf['repoWorkDir'] = '';
1818
$conf['gitPath'] = '';
1919
$conf['addParams'] = '-c user.name="%user%" -c user.email="<%mail%>"';

conf/metadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
* @author Wolfgang Gassler <[email protected]>
66
*/
77

8-
$meta['autoDetermineRepos'] = array('onoff');
98
$meta['pushAfterCommit'] = array('onoff');
109
$meta['periodicPull'] = array('onoff');
1110
$meta['periodicMinutes'] = array('numeric');
1211
$meta['commitPageMsg'] = array('string');
1312
$meta['commitPageMsgDel'] = array('string');
1413
$meta['commitMediaMsg'] = array('string');
1514
$meta['commitMediaMsgDel'] = array('string');
15+
$meta['autoDetermineRepos'] = array('onoff');
1616
$meta['repoPath'] = array('string');
1717
$meta['repoWorkDir'] = array('string');
1818
$meta['gitPath'] = array('string');

lang/de/settings.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
* @author Markus Hoffrogge <[email protected]>
77
*/
88

9-
$lang['autoDetermineRepos'] = 'Erkennt existierende git repo(s) in dem Pfad der geänderten Datei. Wenn gesetzt, dann werden die Einstellungen <code>repoPath</code> und <code>repoWorkDir</code> ignoriert.';
109
$lang['pushAfterCommit'] = 'Push des aktiven Branch zum remote origin nach jedem commit';
1110
$lang['periodicPull'] = 'Pull des remote git Repositories alle "periodicMinutes", getriggert von einem http Page Request';
1211
$lang['periodicMinutes'] = 'Zeitraum (in Minuten) zwischen den periodischen pull requests';
13-
$lang['commitPageMsg'] = 'Commit Kommentar für Seitenänderungen (%user%,%summary%,%page% werden durch die tatsächlichen Werte ersetzt)';
14-
$lang['commitPageMsgDel'] = 'Commit Kommentar für gelöschte Seiten (%user%,%summary%,%page% werden durch die tatsächlichen Werte ersetzt)';
15-
$lang['commitMediaMsg'] = 'Commit Kommentar for media Dateien (%user%,%media% werden durch die tatsächlichen Werte ersetzt)';
16-
$lang['commitMediaMsgDel'] = 'Commit Kommentar für gelöschte media Dateien (%user%,%media% werden durch die tatsächlichen Werte ersetzt)';
17-
$lang['repoPath'] = 'Pfad des git repo (z.B. das <code>savedir</code> '.$GLOBALS['conf']['savedir'].')';
18-
$lang['repoWorkDir'] = 'Pfad des git working tree. Dieser muss die "pages" and "media" Verzeichnisse enthalten (z.B. das <code>savedir</code> '.$GLOBALS['conf']['savedir'].')';
12+
$lang['commitPageMsg'] = 'Commit Kommentar für Seitenänderungen (%user%,%summary%,%page% werden durch die tatsächlichen Werte ersetzt)';
13+
$lang['commitPageMsgDel'] = 'Commit Kommentar für gelöschte Seiten (%user%,%summary%,%page% werden durch die tatsächlichen Werte ersetzt)';
14+
$lang['commitMediaMsg'] = 'Commit Kommentar for media Dateien (%user%,%media% werden durch die tatsächlichen Werte ersetzt)';
15+
$lang['commitMediaMsgDel'] = 'Commit Kommentar für gelöschte media Dateien (%user%,%media% werden durch die tatsächlichen Werte ersetzt)';
16+
$lang['autoDetermineRepos'] = 'Findet das nächste git Repo oberhalb des Pfades der geänderten Datei. Wenn gesetzt, dann werden mehrere repos z.B. in Namespaces oder separate repos für Pages und Media generisch unterstützt.';
17+
$lang['repoPath'] = '<b>Veraltete Konfiguration:</b> Pfad des git Repo (z.B. das <code>savedir</code> <code>$GLOBALS[\'conf\'][\'savedir\']</code>)<br><b>Hinweis:</b> Diese Einstellung ist nur für Rückwärtskompatibilität einer vorhandenen Konfiguration gedacht. Wenn <code>autoDetermineRepos</code> aktiviert ist, dann sollte diese Einstellung nicht gesetzt werden.';
18+
$lang['repoWorkDir'] = '<b>Veraltete Konfiguration:</b> Pfad des git working tree. Dieser muss die "pages" and "media" Verzeichnisse enthalten (z.B. das <code>savedir</code> <code>$GLOBALS[\'conf\'][\'savedir\']</code>)<br><b>Hinweis:</b> Diese Einstellung wird nur berücksichtigt, wenn <code>repoPath</code> gesetzt ist. In diesem Fall wird es nur für das Repo in <code>repoPath</code> angewandt.';
1919
$lang['gitPath'] = 'Pfad zum git binary (Wenn leer, dann wird der Standard "/usr/bin/git" verwendet)';
2020
$lang['addParams'] = 'Zusätzliche git Parameter (diese werden dem git Kommando zugefügt) (%user% und %mail% werden durch die tatsächlichen Werte ersetzt)';
2121
$lang['ignorePaths'] = 'Pfade/Dateien die ignoriert werden und nicht von git archiviert werden sollen (durch Kommata getrennt)';

lang/en/settings.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
* @author Wolfgang Gassler <[email protected]>
77
*/
88

9-
$lang['autoDetermineRepos'] = 'Determine existing git repo(s) from the path of the file to commit. If set, then the configs <code>repoPath</code> and <code>repoWorkDir</code> are ignored.';
109
$lang['pushAfterCommit'] = 'Push active branch to remote origin after every commit';
1110
$lang['periodicPull'] = 'Pull the remote git repository every "periodicMinutes" triggered by a http page request';
1211
$lang['periodicMinutes'] = 'Timespan (in minutes) between periodic pull requests';
13-
$lang['commitPageMsg'] = 'Commit message for page edits (%user%,%summary%,%page% are replaced by the corresponding values)';
14-
$lang['commitPageMsgDel'] = 'Commit message for deleted pages (%user%,%summary%,%page% are replaced by the corresponding values)';
12+
$lang['commitPageMsg'] = 'Commit message for page edits (%user%,%summary%,%page% are replaced by the corresponding values)';
13+
$lang['commitPageMsgDel'] = 'Commit message for deleted pages (%user%,%summary%,%page% are replaced by the corresponding values)';
1514
$lang['commitMediaMsg'] = 'Commit message for media files (%user%,%media% are replaced by the corresponding values)';
16-
$lang['commitMediaMsgDel'] = 'Commit message for deleted media files (%user%,%media% are replaced by the corresponding values)';
17-
$lang['repoPath'] = 'Path of the git repo(s) (e.g. the savedir '.$GLOBALS['conf']['savedir'].')';
18-
$lang['repoWorkDir'] = 'Path of the git working tree, must contain "pages" and "media" directories (e.g. the savedir '.$GLOBALS['conf']['savedir'].')';
15+
$lang['commitMediaMsgDel'] = 'Commit message for deleted media files (%user%,%media% are replaced by the corresponding values)';
16+
$lang['autoDetermineRepos'] = 'Auto determine the next git repo path upwards from the path of the file to commit. If enabled, then multiple repos e.g. within namespaces or separate repos for pages and media are supported in a generic way.';
17+
$lang['repoPath'] = '<b>Legacy config:</b> Path of the git repo (e.g. the <code>savedir</code> <code>$GLOBALS[\'conf\'][\'savedir\']</code>)<br><b>NOTE:</b> This config is for backward compatibility of an existing configuration only. If <code>autoDetermineRepos</code> is on, then this config should not be set for new installations.';
18+
$lang['repoWorkDir'] = '<b>Legacy config:</b> Path of the git working tree, must contain "pages" and "media" directories (e.g. the <code>savedir</code> <code>$GLOBALS[\'conf\'][\'savedir\']</code>)<br><b>NOTE:</b> This config is considered only, if <code>repoPath</code> is set. In this case it does apply for the repo in <code>repoPath</code> only.';
1919
$lang['gitPath'] = 'Path to the git binary (if empty, the default "/usr/bin/git" will be used)';
2020
$lang['addParams'] = 'Additional git parameters (added to the git execution command) (%user% and %mail% are replaced by the corresponding values)';
2121
$lang['ignorePaths'] = 'Paths/files which are ignored and not added to git (comma-separated)';

0 commit comments

Comments
 (0)