WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
15201
Enhancement for prepare-ChangeLog script
https://bugs.webkit.org/show_bug.cgi?id=15201
Summary
Enhancement for prepare-ChangeLog script
Mike Hommey
Reported
2007-09-12 23:52:52 PDT
I made some enhancement for prepare-ChangeLog script: - Properly parse GECOS field. - Use git configuration for user name and email when appropriate.
Attachments
Proposed patch
(1.54 KB, patch)
2007-09-12 23:53 PDT
,
Mike Hommey
no flags
Details
Formatted Diff
Diff
New patch
(1.36 KB, patch)
2007-09-13 11:08 PDT
,
Mike Hommey
aroben
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Mike Hommey
Comment 1
2007-09-12 23:53:13 PDT
Created
attachment 16276
[details]
Proposed patch
Adam Roben (:aroben)
Comment 2
2007-09-13 00:01:07 PDT
Comment on
attachment 16276
[details]
Proposed patch + my $_name = `$GIT config user.name`; + chomp $_name; + $name = $_name if $_name; I'm not sure it's right for a git config variable to override the REAL_NAME and EMAIL_ADDRESS environment variables. Perhaps we should try to check this information before checking the environment variables?
Mike Hommey
Comment 3
2007-09-13 01:28:56 PDT
(In reply to
comment #2
)
> I'm not sure it's right for a git config variable to override the REAL_NAME and > EMAIL_ADDRESS environment variables. Perhaps we should try to check this > information before checking the environment variables?
I'm not sure either, but I, for one, would expect the most specific configuration to apply. While the environment variables are more specific than the GECOS entry, the git configuration is more specific than the environment variables. I would actually be bothered if environment variables, that are global to many applications, would override the preferences I specifically use for git.
Adam Roben (:aroben)
Comment 4
2007-09-13 09:15:53 PDT
(In reply to
comment #3
)
> (In reply to
comment #2
) > > I'm not sure it's right for a git config variable to override the REAL_NAME and > > EMAIL_ADDRESS environment variables. Perhaps we should try to check this > > information before checking the environment variables? > > I'm not sure either, but I, for one, would expect the most specific > configuration to apply. While the environment variables are more specific than > the GECOS entry, the git configuration is more specific than the environment > variables. > > I would actually be bothered if environment variables, that are global to many > applications, would override the preferences I specifically use for git.
Well, the nice thing about environment variables is that they're easy to change for a single invocation:
EMAIL_ADDRESS=me@somewhere-else.net
prepare-ChangeLog It's much more of a hassle to change a git config variable for a one-time thing like that.
Mike Hommey
Comment 5
2007-09-13 10:32:38 PDT
> Well, the nice thing about environment variables is that they're easy to change > for a single invocation: > >
EMAIL_ADDRESS=me@somewhere-else.net
prepare-ChangeLog > > It's much more of a hassle to change a git config variable for a one-time thing > like that.
Mmmmm you got a point here.
Mike Hommey
Comment 6
2007-09-13 11:08:40 PDT
Created
attachment 16280
[details]
New patch Here you are
Adam Roben (:aroben)
Comment 7
2007-09-13 11:24:24 PDT
Comment on
attachment 16280
[details]
New patch + $result; We normally use the "return" keyword in our scripts, even though it isn't strictly necessary. I like this fix! I think this could be committed as-is, or the committer can add the "return" as I said above. r=me
David Kilzer (:ddkilzer)
Comment 8
2007-09-18 07:06:17 PDT
Committed revision 25616. Added 'return' gitConfig() subroutine. Also added a subroutine declaration at the top of the file and moved the gitConfig() sub out of the main body of the script and into the other subroutines.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug