@@ -59,7 +59,7 @@ func (repo *Repository) getCommitByPathWithID(id ObjectID, relpath string) (*Com
5959 relpath = `\` + relpath
6060 }
6161
62- stdout , _ , runErr := NewCommand ("log" , "-1" , PrettyLogFormat ).AddDynamicArguments (id .String ()).AddDashesAndList (relpath ).RunStdString (repo .Ctx , & RunOpts {Dir : repo .Path })
62+ stdout , _ , runErr := NewCommand ("log" , "-1" , prettyLogFormat ).AddDynamicArguments (id .String ()).AddDashesAndList (relpath ).RunStdString (repo .Ctx , & RunOpts {Dir : repo .Path })
6363 if runErr != nil {
6464 return nil , runErr
6565 }
@@ -74,7 +74,7 @@ func (repo *Repository) getCommitByPathWithID(id ObjectID, relpath string) (*Com
7474
7575// GetCommitByPath returns the last commit of relative path.
7676func (repo * Repository ) GetCommitByPath (relpath string ) (* Commit , error ) {
77- stdout , _ , runErr := NewCommand ("log" , "-1" , PrettyLogFormat ).AddDashesAndList (relpath ).RunStdBytes (repo .Ctx , & RunOpts {Dir : repo .Path })
77+ stdout , _ , runErr := NewCommand ("log" , "-1" , prettyLogFormat ).AddDashesAndList (relpath ).RunStdBytes (repo .Ctx , & RunOpts {Dir : repo .Path })
7878 if runErr != nil {
7979 return nil , runErr
8080 }
@@ -94,7 +94,7 @@ func (repo *Repository) commitsByRangeWithTime(id ObjectID, page, pageSize int,
9494 cmd := NewCommand ("log" ).
9595 AddOptionFormat ("--skip=%d" , (page - 1 )* pageSize ).
9696 AddOptionFormat ("--max-count=%d" , pageSize ).
97- AddArguments (PrettyLogFormat ).
97+ AddArguments (prettyLogFormat ).
9898 AddDynamicArguments (id .String ())
9999
100100 if not != "" {
@@ -141,7 +141,7 @@ func (repo *Repository) searchCommits(id ObjectID, opts SearchCommitsOptions) ([
141141 }
142142
143143 // create new git log command with limit of 100 commits
144- cmd := NewCommand ("log" , "-100" , PrettyLogFormat ).AddDynamicArguments (id .String ())
144+ cmd := NewCommand ("log" , "-100" , prettyLogFormat ).AddDynamicArguments (id .String ())
145145
146146 // pretend that all refs along with HEAD were listed on command line as <commis>
147147 // https://git-scm.com/docs/git-log#Documentation/git-log.txt---all
@@ -175,7 +175,7 @@ func (repo *Repository) searchCommits(id ObjectID, opts SearchCommitsOptions) ([
175175 // ignore anything not matching a valid sha pattern
176176 if id .Type ().IsValid (v ) {
177177 // create new git log command with 1 commit limit
178- hashCmd := NewCommand ("log" , "-1" , PrettyLogFormat )
178+ hashCmd := NewCommand ("log" , "-1" , prettyLogFormat )
179179 // add previous arguments except for --grep and --all
180180 addCommonSearchArgs (hashCmd )
181181 // add keyword as <commit>
@@ -410,7 +410,7 @@ func (repo *Repository) CommitsCountBetween(start, end string) (int64, error) {
410410
411411// commitsBefore the limit is depth, not total number of returned commits.
412412func (repo * Repository ) commitsBefore (id ObjectID , limit int ) ([]* Commit , error ) {
413- cmd := NewCommand ("log" , PrettyLogFormat )
413+ cmd := NewCommand ("log" , prettyLogFormat )
414414 if limit > 0 {
415415 cmd .AddOptionFormat ("-%d" , limit )
416416 }
@@ -536,7 +536,7 @@ func (repo *Repository) AddLastCommitCache(cacheKey, fullName, sha string) error
536536
537537// GetCommitBranchStart returns the commit where the branch diverged
538538func (repo * Repository ) GetCommitBranchStart (env []string , branch , endCommitID string ) (string , error ) {
539- cmd := NewCommand ("log" , PrettyLogFormat )
539+ cmd := NewCommand ("log" , prettyLogFormat )
540540 cmd .AddDynamicArguments (endCommitID )
541541
542542 stdout , _ , runErr := cmd .RunStdBytes (repo .Ctx , & RunOpts {
0 commit comments