X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=tig.pl;h=e08d79c502c1409b41b8f7c80da46c86f7108781;hb=43b41a6e89f5458655517584ee019b48ada78dec;hp=0d80e1fcb56b55a0d7dc1141624458e746e11539;hpb=d7f7f59419c69580f22d7b74eb5d399412ad5483;p=config%2Fdotfiles.git diff --git a/tig.pl b/tig.pl index 0d80e1f..e08d79c 100755 --- a/tig.pl +++ b/tig.pl @@ -40,7 +40,9 @@ my $format = '%x00' # separator from --graph . '%an' . '%x00' # author name . '%s' . '%x00' # subject . '%d'; # ref names -my @cmd = ('git', 'log', '--all', '--graph', "--format=$format"); +my @cmd = ('git', 'log', '--graph', "--format=$format", + # use either given arguments or --all to list all commits + (scalar @ARGV) ? @ARGV : '--all'); open my $fh, '-|', @cmd or die $!; my $pager = $ENV{PAGER};