We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f416c1 commit 49aff09Copy full SHA for 49aff09
Git.php
@@ -372,10 +372,12 @@ public function rm($files = "*", $cached = false) {
372
*
373
* @access public
374
* @param string commit message
375
+ * @param boolean should all files be committed automatically (-a flag)
376
* @return string
377
*/
- public function commit($message = "") {
378
- return $this->run("commit -av -m ".escapeshellarg($message));
+ public function commit($message = "", $commit_all = true) {
379
+ var flags = $commit_all ? '-av' : '-v';
380
+ return $this->run("commit '.$flags.' -m ".escapeshellarg($message));
381
}
382
383
/**
0 commit comments