chiark / gitweb /
dgit: Make commit_getclogp not leave a lot of detritus in .git/dgit
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 3 Aug 2017 17:09:24 +0000 (18:09 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 3 Aug 2017 21:41:51 +0000 (22:41 +0100)
Have it use a fixed filename instead.  It's only needed right away so
that's fine.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
dgit

index 241771858adb881e1654e2700339f4cd99f55e3e..eb7bc6ac5d0ba6dcef3c244c20b896e9a7378067 100644 (file)
@@ -6,6 +6,9 @@ dgit (4.1~) experimental; urgency=medium
   * dgit-user(7): Fixed example rune to use curl (which prints
     to stdout, as the rune expects).  [reported by Simon Tatham]
 
+  Minor improvements:
+  * Do not leave many clog-* files in .git/dgit.
+
   Internal changes:
   * using-these: New script to help with ad-hoc-testing.
   * Refactoring in preparation for push-source [Sean Whitton].
diff --git a/dgit b/dgit
index 8b638c476f091bba7333dff8723fca79e6347daf..606abb5881ccd2a75736775cf04688a315c91d0d 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -985,7 +985,7 @@ sub commit_getclogp ($) {
     my $memo = $commit_getclogp_memo{$objid};
     return $memo if $memo;
     
-    my $mclog = dgit_privdir()."clog-$objid";
+    my $mclog = dgit_privdir()."clog";
     runcmd shell_cmd "exec >$mclog", @git, qw(cat-file blob),
        "$objid:debian/changelog";
     $commit_getclogp_memo{$objid} = parsechangelog("-l$mclog");