gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 88/411: scripts/delta: add diffstat summary


From: gnunet
Subject: [gnurl] 88/411: scripts/delta: add diffstat summary
Date: Wed, 13 Jan 2021 01:18:23 +0100

This is an automated email from the git hooks/post-receive script.

nikita pushed a commit to branch master
in repository gnurl.

commit b4d86d34f9321292cdf58d44615ea2bad7f13e5e
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Thu Sep 3 08:18:32 2020 +0200

    scripts/delta: add diffstat summary
    
    ... and make output more table-like
---
 scripts/delta | 35 +++++++++++++++++------------------
 1 file changed, 17 insertions(+), 18 deletions(-)

diff --git a/scripts/delta b/scripts/delta
index f3781212b..104262203 100755
--- a/scripts/delta
+++ b/scripts/delta
@@ -83,6 +83,9 @@ $apublic=`git grep ^CURL_EXTERN -- include/curl | wc -l`;
 $bpublic=`git grep ^CURL_EXTERN $start -- include/curl | wc -l`;
 $public = $apublic - $bpublic;
 
+# diffstat
+$diffstat=`git diff --stat $start.. | tail -1`;
+
 # Changes/bug-fixes currently logged
 open(F, "<RELEASE-NOTES");
 while(<F>) {
@@ -115,27 +118,23 @@ close(F);
 ########################################################################
 # Produce the summary
 
-print "== Since $start ==\n";
-printf "Commits: %d (out of %d)\n",
+print "== Since $start $taggednice ==\n";
+printf "Elapsed time:                   %.1f days\n",
+    $elapsed / 3600 / 24;
+printf "Commits:                        %d (out of %d)\n",
     $commits, $acommits;
-printf "Commit authors: %d out of which %d are new (out of %d)\n",
+printf "Commit authors:                 %d, %d new (total %d)\n",
     $committers, $ncommitters, $acommitters;
-printf "Contributors in RELEASE-NOTES: %d\n",
-    $numcontributors;
-printf "New contributors: %d (out of %d)\n",
-    $contribs, $acontribs;
-printf "New curl_easy_setopt() options: %d (out of %d)\n",
+printf "Contributors:                   %d, %d new (total %d)\n",
+    $numcontributors, $contribs, $acontribs;
+printf "New public functions:           %d (total %d)\n",
+    $public, $apublic;
+printf "New curl_easy_setopt() options: %d (total %d)\n",
     $nsetopts, $asetopts;
-printf "New command line options: %d (out of %d)\n",
+printf "New command line options:       %d (total %d)\n",
     $noptions, $aoptions;
-
+printf "Changes logged:                 %d\n", $numchanges;
+printf "Bugfixes logged:                %d\n", $numbugfixes;
 printf "Deleted %d files, added %d files (total %d)\n",
     $deletes, $creates, $afiles;
-
-printf "Elapsed time: %.1f days (since$taggednice)\n",
-    $elapsed / 3600 / 24;
-printf "Changes logged: %d\n", $numchanges;
-printf "Bugfixes logged: %d\n", $numbugfixes;
-
-printf "New public functions: %d (out of %d)\n",
-    $public, $apublic;
+print "Diffstat:$diffstat";

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]