Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
projectlog
"
project log [--limit=<max-commit-log-entries>] <project-name>
"
| logLimit registration projectName |
self getSubcommandOptsMixedLongShort: {#('limit' nil #'required')}.
subOptions
at: 'limit'
ifPresent: [ :limit | logLimit := limit asNumber ]
ifAbsent: [ logLimit := 100 ].
projectName := subArguments at: 1.
registration := self projectRegistrationFor: projectName.
^ self projectCommitLog: registration logLimit: logLimit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment