lkml.org 
[lkml]   [2008]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 463 kernel developers missing!
STOP!!!  This is seriously just getting silly...

If people *really* care about the privacy of information they placed
in publicly accessible databases via agreement with the DCO, then
there is a workaround:

Instead of a "mailmap" file, use a "mailhash" file like this:

[...lines...]
4db83f457ca750b3ed0bb7db2375cfd41846fb43 Kyle Moffett <kyle@moffetthome.net>
[...more lines...]


That SHA1 checksum is of the name-and-email you are mapping *from* and
the value on the right is the string to replace it with. For all the
people who don't like their emails being displayed when somebody looks
at logs, you can just get your entries in that file changed to
"anonymous". Then the people who want useful statistics will ignore
your commits and people who want to look at logs will just use the
newly-added --no-mailhash option to see the
"<jranodmuser@my-typod-domian.cmo>" that you happened to put in the
Signed-off-by.

Alternatively people could realize it's not worth it and just go write
real code or something.

PS. Just to show how easy it was, I converted the mailmap file that
was sent out into the above mailhash file with a perl one-liner
(WARNING: probably linewrapped):

perl -MDigest::SHA1=sha1_hex -n -e 'chomp; s/\s+/ /g; s/^ //; s/ $//;
print sha1_hex($_)." $_\n";' <mailmap >mailhash

Once you have the mailhash file, to convert from a "Name <email>" to
the actual desired representation you can run:

value="Name <email>"
sha1="$(echo -n "${value}" | sha1sum - | awk '{print $1}')"
line="$(sed -ne "/^${sha1} /{ s/^${sha1} //; p }" mailhash | head -n 1)"

Cheers,
Kyle Moffett


\
 
 \ /
  Last update: 2008-07-31 06:25    [W:0.159 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site