File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -654,11 +654,21 @@ public function pull($remote = "", $branch = "") {
654654 * @param strgin $format
655655 * @return string
656656 */
657- public function log ($ format = null ) {
657+ public function log ($ format = null , $ fulldiff =false , $ filepath =null , $ follow =false ) {
658+
659+ if ($ fulldiff ){
660+ $ diff = "--full-diff -p " ;
661+ }
662+
663+ if ($ follow ){
664+ // Can't use full-diff with follow
665+ $ diff = "--follow -- " ;
666+ }
667+
658668 if ($ format === null )
659- return $ this ->run ('log ' );
669+ return $ this ->run ('log ' . $ diff . $ filepath );
660670 else
661- return $ this ->run ('log --pretty=format:" ' . $ format . '" ' );
671+ return $ this ->run ('log --pretty=format:" ' . $ format . '" ' . $ diff . $ filepath );
662672 }
663673
664674 /**
You can’t perform that action at this time.
0 commit comments