Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144567010
D55195.id171525.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D55195.id171525.diff
View Options
diff --git a/tools/tools/git/git-arc.sh b/tools/tools/git/git-arc.sh
--- a/tools/tools/git/git-arc.sh
+++ b/tools/tools/git/git-arc.sh
@@ -452,26 +452,27 @@
# The Phabricator interface doesn't have a simple way to get author name and
# address, so we have to try a number of heuristics to get the right result.
- # Choice 1: It's a FreeBSD committer. These folks have no '.' in their phab
+ # Choice 1: author_addr and author_name were set in the bundle, so use
+ # that. We may need to filter some known bogus ones, should they crop up.
+ if [ -n "$author_name" -a -n "$author_addr" ]; then
+ echo "${author_name} <${author_addr}>"
+ return
+ fi
+
+ # Choice 2: It's a FreeBSD committer. These folks have no '.' in their phab
# username/addr. Sampled data in phab suggests that there's a high rate of
# these people having their local config pointing at something other than
# freebsd.org (which isn't surprising for ports committers getting src
# commits reviewed).
case "${addr}" in
*.*) ;; # external user
+ guest-*) ;; # Fake email address, not a FreeBSD user
*)
echo "${name} <${addr}@FreeBSD.org>"
return
;;
esac
- # Choice 2: author_addr and author_name were set in the bundle, so use
- # that. We may need to filter some known bogus ones, should they crop up.
- if [ -n "$author_name" -a -n "$author_addr" ]; then
- echo "${author_name} <${author_addr}>"
- return
- fi
-
# Choice 3: We can find this user in the FreeBSD repo. They've submited
# something before, and they happened to use an email that's somewhat
# similar to their phab username.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 10, 4:22 PM (9 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28627986
Default Alt Text
D55195.id171525.diff (1 KB)
Attached To
Mode
D55195: git-arc: Tweak heuristic for email address
Attached
Detach File
Event Timeline
Log In to Comment