Skip to content

Commit 69daa59

Browse files
committed
Add git status function
1 parent be775b9 commit 69daa59

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Git.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,18 @@ public function run($command) {
288288
return $this->run_command(Git::get_bin()." ".$command);
289289
}
290290

291+
/**
292+
* Runs a 'git status' call
293+
*
294+
* @access public
295+
* @return string
296+
*/
297+
public function status() {
298+
$msg = $this->run("status");
299+
$msg = str_replace("\n", "<br />", $msg);
300+
return $msg;
301+
}
302+
291303
/**
292304
* Runs a `git add` call
293305
*

0 commit comments

Comments
 (0)