]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Change to version-independent git option for 'git log --oneline'
authorTor Arntsen <tor@spacetec.no>
Thu, 25 Mar 2010 15:23:27 +0000 (16:23 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 25 Mar 2010 17:27:44 +0000 (18:27 +0100)
'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.

tests/testcurl.pl

index 9f8f8784673d89ca8122d3e018e73e49fe2ebe15..4d099095b293ca033851b5facb78a178bed2d47e 100755 (executable)
@@ -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";