summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-06-04 16:49:20 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-07-16 16:47:47 +0100
commitc241a9f63b2e3ca01e7f0e03a18e129c0f27fbb4 (patch)
treebcc0da7728acc592e93f8ab1de1213ab8131fb9f /dgit
parent16c86daecbed9ea9f265cb96c5a1502eabdf0609 (diff)
Split brain: Start work on generating gitignore patch
Generate a patch header, for now. Still not finished.
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit14
1 files changed, 14 insertions, 0 deletions
diff --git a/dgit b/dgit
index 73432bc..50c8dd0 100755
--- a/dgit
+++ b/dgit
@@ -2576,6 +2576,20 @@ sub quiltify_splitbrain ($$) {
!($diffbits->{O2A} & 02)) { # patches do not change .gitignore
quiltify_splitbrain_needed();
progress "creating patch to represent .gitignore changes";
+ my $gipatch = "debian/patches/auto-gitignore";
+ open GIPATCH, ">>", "$gipatch" or die "$gipatch: $!";
+ stat GIPATCH or die "$gipatch: $!";
+ fail "$gipatch already exists; but want to create it".
+ " to record .gitignore changes" if (stat _)[7];
+ print GIPATCH <<END or die "$gipatch: $!";
+Subject: Update .gitignore from Debian packaging branch
+
+The Debian packaging git branch contains these updates to the upstream
+.gitignore file(s). This patch is autogenerated, to provide these
+updates to users of the official Debian archive view of the package.
+
+---
+END
die 'xxx gitignore';
}