X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=dgit;h=a935cbfacb470e103ca0d05497ec2f44cdf908c2;hb=d33fa1545969c40c257a02c3a442b1e47d291b16;hp=ae96531e38072c586035a080e9db3f7fd0c4d399;hpb=b1772b364e75b32c413db7060a0adf8b124c84db;p=dgit.git diff --git a/dgit b/dgit index ae96531e..a935cbfa 100755 --- a/dgit +++ b/dgit @@ -1638,7 +1638,10 @@ sub set_local_git_config ($$) { runcmd @git, qw(config), $k, $v; } -sub setup_mergechangelogs () { +sub setup_mergechangelogs (;$) { + my ($always) = @_; + return unless $always || access_cfg_bool(1, 'setup-mergechangelogs'); + my $driver = 'dpkg-mergechangelogs'; my $cb = "merge.$driver"; my $attrs = '.git/info/attributes'; @@ -3021,7 +3024,7 @@ sub cmd_clone_dgit_repos_server { sub cmd_setup_mergechangelogs { badusage "no arguments allowed to dgit setup-mergechangelogs" if @ARGV; - setup_mergechangelogs(); + setup_mergechangelogs(1); } #---------- argument parsing and main program ----------