Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions go/cmd/dolt/cli/arg_parser_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ func CreateLogArgParser(isTableFunction bool) *argparser.ArgParser {
} else {
ap.SupportsFlag(OneLineFlag, "", "Shows logs in a compact format.")
ap.SupportsFlag(StatFlag, "", "Shows the diffstat for each commit.")
ap.SupportsFlag(GraphFlag, "", "Shows the commit graph.")
}
return ap
}
Expand Down
1 change: 1 addition & 0 deletions go/cmd/dolt/cli/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const (
DepthFlag = "depth"
DryRunFlag = "dry-run"
ForceFlag = "force"
GraphFlag = "graph"
HardResetParam = "hard"
HostFlag = "host"
InteractiveFlag = "interactive"
Expand Down
2 changes: 2 additions & 0 deletions go/cmd/dolt/commands/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ func logToStdOut(apr *argparser.ArgParseResults, commits []CommitInfo, sqlCtx *s
defer pager.Stop()
if apr.Contains(cli.OneLineFlag) {
err = logCompact(pager, apr, commits, sqlCtx, queryist)
} else if apr.Contains(cli.GraphFlag) {
logGraph(pager, apr, commits)
} else {
err = logDefault(pager, apr, commits, sqlCtx, queryist)
}
Expand Down
Loading