Skip to content

Commit 0bdd931

Browse files
authored
Refactor command argument addition for clarity
1 parent 0b2b4c7 commit 0bdd931

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

repo_commit.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,10 @@ func (r *Repository) RevListCount(refspecs []string, opts ...RevListCountOptions
472472

473473
cmd := NewCommand("rev-list").
474474
AddOptions(opt.CommandOptions).
475-
AddArgs("--count").
476-
AddArgs("--end-of-options")
475+
AddArgs(
476+
"--count",
477+
"--end-of-options",
478+
)
477479
cmd.AddArgs(refspecs...)
478480
cmd.AddArgs("--")
479481
if opt.Path != "" {

0 commit comments

Comments
 (0)