Skip to content

Instantly share code, notes, and snippets.

@dalehenrich
Created November 2, 2015 23:59
Show Gist options
  • Save dalehenrich/c626d4628ae6b70f8d79 to your computer and use it in GitHub Desktop.
Save dalehenrich/c626d4628ae6b70f8d79 to your computer and use it in GitHub Desktop.
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