Skip to content

Commit 1c93a5a

Browse files
James DiGioiaJames DiGioia
authored andcommitted
Add bool for git clean
1 parent c61b1dd commit 1c93a5a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Git.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,11 @@ public function clone_remote($source) {
383383
*
384384
* @access public
385385
* @param bool delete directories?
386+
* @param bool force clean?
386387
* @return string
387388
*/
388-
public function clean($dirs = false) {
389-
return $this->run("clean -f".(($dirs) ? " -d" : ""));
389+
public function clean($dirs = false, $force = false) {
390+
return $this->run("clean".(($force) ? "-f" : "").(($dirs) ? " -d" : ""));
390391
}
391392

392393
/**

0 commit comments

Comments
 (0)