Skip to content

Commit 58b52c6

Browse files
committed
Added Git::windows_mode() method
1 parent 70f1f40 commit 58b52c6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Git.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* A PHP git library
77
*
88
* @package Git.php
9-
* @version 0.1.3
9+
* @version 0.1.4
1010
* @author James Brumond
1111
* @copyright Copyright 2013 James Brumond
1212
* @repo http://github.com/kbjr/Git.php
@@ -48,6 +48,13 @@ public static function set_bin($path) {
4848
public static function get_bin() {
4949
return self::$bin;
5050
}
51+
52+
/**
53+
* Sets up library for use in a default Windows environment
54+
*/
55+
public static function windows_mode() {
56+
self::set_bin('git');
57+
}
5158

5259
/**
5360
* Create a new git repository

0 commit comments

Comments
 (0)