Skip to content
Browse files

Use 1 as the default number of commits (git last)

This patch sets the default number of commits to 1, in case
no number of commits is specified on the command line (note
that this requires the bash shell, as it uses bash-specific
shell parameter expansion syntax)... avoiding the following
error message:

~ $ git last
error: -n requires an argument
~ $ git-last
error: -n requires an argument
~ $ _
  • Loading branch information...
1 parent b23a712 commit c2633d9b884cab0403bae5b9a4039f78a18649b2 @pvdb pvdb committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 git-last
4 git-last
@@ -1,3 +1,3 @@
git log -n ${REVISIONS}

0 comments on commit c2633d9

Please sign in to comment.
Something went wrong with that request. Please try again.