From c241a9f63b2e3ca01e7f0e03a18e129c0f27fbb4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 4 Jun 2016 16:49:20 +0100 Subject: [PATCH] Split brain: Start work on generating gitignore patch Generate a patch header, for now. Still not finished. --- dgit | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dgit b/dgit index 73432bce..50c8dd06 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 <