Skip to content

Commit

Permalink
use HEAD as the default to git-incremental-show when no args are given
Browse files Browse the repository at this point in the history
  • Loading branch information
smtlaissezfaire committed Nov 16, 2009
1 parent f535b32 commit 58ccfb1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions git-incremental-show
Expand Up @@ -2,6 +2,10 @@

start_revision="$@"

if [[ $start_revision -eq "" ]]; then
start_revision="HEAD"
fi

revisions=$(git rev-list "$start_revision")

for revision in $revisions; do
Expand Down

0 comments on commit 58ccfb1

Please sign in to comment.