chiark / gitweb /
classificaton generates Changelog type
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 25 Aug 2017 10:11:08 +0000 (11:11 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 25 Aug 2017 10:11:08 +0000 (11:11 +0100)
git-debrebase

index f16b9b590de949f1e18a45df360886d6d28470b2..a1d277e54c7a6bf82417eb28c3689ef2063d6432 100755 (executable)
@@ -264,6 +264,7 @@ sub calculate_committer_authline () {
 #
 # Types:
 #   Packaging
+#   Changelog
 #   Upstream
 #   AddPatches
 #   Mixed
@@ -337,7 +338,11 @@ sub classify ($) {
        } elsif ($d & DS_DEB and !($d & ~DS_DEB)) {
            my ($ty,$dummy) = git_cat_file "$ph[0]:debian";
            if ($ty eq 'tree') {
-               return $classify->(qw(Packaging));
+               if ($d == D_DEB_CLOG) {
+                   return $classify->(qw(Changelog));
+               } else {
+                   return $classify->(qw(Packaging));
+               }
            } elsif ($ty eq 'missing') {
                return $classify->(qw(BreakwaterStart));
            } else {
@@ -494,7 +499,7 @@ sub walk ($;$$) {
            $cur = $p0;
            $rewrite_from_here->();
            next;
-       } elsif ($ty eq 'Packaging') {
+       } elsif ($ty eq 'Packaging' or $ty eq 'Changelog') {
            push @brw_cl, $cl;
            $cur = $p0;
            next;