From: idl0r Date: Thu, 7 May 2009 11:26:04 +0000 (-0000) Subject: Re-add files (git) if the copyright has been updated, thanks to Justin Lecher (jlec... X-Git-Tag: gentoolkit-dev-0.2.6.12~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=37d0e28fd4deee976cbbdf95d4919ea119d8a8c3;p=gentoolkit.git Re-add files (git) if the copyright has been updated, thanks to Justin Lecher (jlec) . svn path=/trunk/gentoolkit-dev/; revision=617 --- diff --git a/ChangeLog b/ChangeLog index ff855ec..d2e364b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-05-07: Christian Ruppert + * echangelog: Re-add files (git) if the copyright has been updated, thanks + to Justin Lecher (jlec) . + 2009-05-06: Christian Ruppert * ekeyword: Improved die message, bug 257853. * echangelog: Fixed git detection. Add support for project-wide variables diff --git a/src/echangelog/echangelog b/src/echangelog/echangelog index 551d9b9..c27834d 100755 --- a/src/echangelog/echangelog +++ b/src/echangelog/echangelog @@ -686,6 +686,12 @@ for my $e (grep /\.ebuild$/, @files) { # Move things around and show the diff system "diff -U 0 $e $e.new"; rename "$e.new", $e or warn("Can't rename $e.new: $!\n"); + + # git requires to re-add this file else it wouln't be included in the commit. + if ($vcs eq "git") + { + system("$vcs{$vcs}{add} ${e}"); + } } }