This would avoid trouble by accidentally leaving it out. (GitX doesn't trigger the git hook to execute, I think SmartGit doesn't either).
Cheers,
Tony.
Not currently, no. :-(
> This would avoid trouble by accidentally leaving it out. (GitX doesn't trigger the git hook to execute, I think SmartGit doesn't either).
Bummer. But neither does EGit. So we're adding it natively to the
EGit plugin in version 0.9. :-)
if (project.isUseSignedOffBy()) {
// If the project wants Signed-off-by / Acked-by lines, verify we
// have them for the blamable parties involved on this change.
//
boolean sboAuthor = false, sboCommitter = false, sboMe = false;
for (final FooterLine footer : c.getFooterLines()) {
if (footer.matches(FooterKey.SIGNED_OFF_BY)) {
final String e = footer.getEmailAddress();
if (e != null) {
sboAuthor |= author.getEmailAddress().equals(e);
sboCommitter |= committer.getEmailAddress().equals(e);
sboMe |= currentUser.getEmailAddresses().contains(e);
}
}
}
if (!sboAuthor && !sboCommitter && !sboMe && !ctl.canForgeCommitter()) {
reject(cmd, "not Signed-off-by author/committer/uploader");
return false;
}
}
return true;
}
S/signed-off-by/change-id/ ?
if (project.isChangeIdRequired()) {
for (final FooterLine footer : c.getFooterLines()) {
if (footer.matches(FooterKey.CHANGEI_ID)) {
return true;
}
}
reject(cmd, "Change-Id: missing");
return false;
Yea, that seems OK to me.
Regards,
Antony Stubbs
Its a lot easier for me to just review and click submit. :-)
> On Sat, Jun 12, 2010 at 19:48, Antony Stubbs <antony...@gmail.com> wrote:
>> Are you going to patch it, or shall I submit something?
>
> Its a lot easier for me to just review and click submit. :-)
Fair enough! Do you thunk it will require a schema change?
Unfortunately, yes. You added a property to the Project entity, and
need a new column in the database to store that "require change-id"
flag.
http://code.google.com/p/gerrit/issues/detail?id=547
j.
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>