MCPcopy Index your code
hub / github.com/git-lfs/git-lfs / logsLastCommand

Function logsLastCommand

commands/command_logs.go:19–27  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

17}
18
19func logsLastCommand(cmd *cobra.Command, args []string) {
20 logs := sortedLogs()
21 if len(logs) < 1 {
22 Print(tr.Tr.Get("No logs to show"))
23 return
24 }
25
26 logsShowCommand(cmd, logs[len(logs)-1:])
27}
28
29func logsShowCommand(cmd *cobra.Command, args []string) {
30 if len(args) == 0 {

Callers

nothing calls this directly

Calls 4

sortedLogsFunction · 0.85
PrintFunction · 0.85
logsShowCommandFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected