Change to version-independent git option for 'git log --oneline'

'git log --oneline' is a relatively recent Git function. It is
documented to be the same as 'git log --pretty=oneline --abbrev-commit',
so use that instead. It works all the way back to Git 1.5.0.
This commit is contained in:
Tor Arntsen 2010-03-25 16:23:27 +01:00 committed by Daniel Stenberg
parent ac8b2ef563
commit e1c38791b7
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ if ($git) {
}
# get the last 5 commits for show (even if no pull was made)
my @commits=`git log --oneline -5`;
my @commits=`git log --pretty=oneline --abbrev-commit -5`;
logit "The most recent git commits:";
for my $l (@commits) {
logit " $l";