From 6fab00d6201f741f87cc89a0a24443db584c4162 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 10 Mar 2017 17:40:35 +0000 Subject: Dgit.pm: $negate_harmful_gitattrs: Break out from dgit No functional change. Signed-off-by: Ian Jackson --- Debian/Dgit.pm | 5 ++++- dgit | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm index 5b5591d..6977ed2 100644 --- a/Debian/Dgit.pm +++ b/Debian/Dgit.pm @@ -55,7 +55,8 @@ BEGIN { initdebug enabledebug enabledebuglevel printdebug debugcmd $debugprefix *debuglevel *DEBUG - shellquote printcmd messagequote); + shellquote printcmd messagequote + $negate_harmful_gitattrs); # implicitly uses $main::us %EXPORT_TAGS = ( policyflags => [qw(NOFFCHECK FRESHREPO NOCOMMITCHECK)] ); @EXPORT_OK = @{ $EXPORT_TAGS{policyflags} }; @@ -82,6 +83,8 @@ sub NOCOMMITCHECK () { return 0x8; } our $debugprefix; our $debuglevel = 0; +our $negate_harmful_gitattrs = "-text -eol -crlf -ident -filter"; + our $forkcheck_mainprocess; sub forkcheck_setup () { diff --git a/dgit b/dgit index 54ba4d6..3cf7705 100755 --- a/dgit +++ b/dgit @@ -3378,7 +3378,7 @@ END open GAO, "> $af.new" or die $!; print GAO <