mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
Only check specified paths in check-authors.go
This commit is contained in:
parent
a6a9af4f02
commit
ac2343ea57
@ -42,7 +42,7 @@ func init() {
|
||||
}
|
||||
|
||||
func main() {
|
||||
actual := actualAuthorEmails()
|
||||
actual := actualAuthorEmails("cmd/", "lib/", "gui/", "test/", "script/")
|
||||
listed := listedAuthorEmails()
|
||||
missing := actual.except(listed)
|
||||
if len(missing) > 0 {
|
||||
@ -56,8 +56,9 @@ func main() {
|
||||
|
||||
// actualAuthorEmails returns the set of author emails found in the actual git
|
||||
// commit log, except those in excluded commits.
|
||||
func actualAuthorEmails() stringSet {
|
||||
cmd := exec.Command("git", "log", "--format=%H %ae")
|
||||
func actualAuthorEmails(paths ...string) stringSet {
|
||||
args := append([]string{"log", "--format=%H %ae"}, paths...)
|
||||
cmd := exec.Command("git", args...)
|
||||
bs, err := cmd.Output()
|
||||
if err != nil {
|
||||
log.Fatal("authorEmails:", err)
|
||||
|
Loading…
Reference in New Issue
Block a user