From: | Alex Xu <alex_y_xu@×××××.ca> | ||
---|---|---|---|
To: | gentoo-dev@l.g.o | ||
Subject: | Re: [gentoo-dev] Re: [OT/NIT] Re: Re: [gentoo-commits] gentoo-x86 commit in profiles: ChangeLog package.mask | ||
Date: | Wed, 24 Apr 2013 20:04:24 | ||
Message-Id: | 51783ABF.8090600@yahoo.ca | ||
In Reply to: | Re: [gentoo-dev] Re: [OT/NIT] Re: Re: [gentoo-commits] gentoo-x86 commit in profiles: ChangeLog package.mask by Rich Freeman |
1 | Any reason why a pre-commit hook can't be used? |
2 | |
3 | Assuming that `git push -f` is never used and that every committer uses |
4 | it, pre-commit is guaranteed to be executed on all commits that are |
5 | pushed to the remote. |
6 | |
7 | pre-commit can check QA and even automate changelog, so instead of: |
8 | |
9 | $ cvs update |
10 | $ cvs add foo |
11 | $ echangelog "fixed #xxxxxx in foo" |
12 | $ repoman commit |
13 | |
14 | We have: |
15 | |
16 | $ git pull |
17 | $ git add foo |
18 | $ echangelog "fixed #xxxxxx in foo" |
19 | $ git commit |
20 | |
21 | To set up: |
22 | |
23 | $ cat > .git/hooks/pre-commit << EOF |
24 | #!/bin/sh |
25 | repoman scan |
26 | EOF |
27 | |
28 | Seems simple enough, as long as `repoman scan` runs quickly. |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |
Subject | Author |
---|---|
Re: [gentoo-dev] Re: [OT/NIT] Re: Re: [gentoo-commits] gentoo-x86 commit in profiles: ChangeLog package.mask | Rich Freeman <rich0@g.o> |