On Saturday 06 March 2010 05:25:10 Michal Simek wrote: > Mike Frysinger wrote: > > On Saturday 27 February 2010 02:53:48 Rishikesh K Rajak wrote: > >> We are in process of changing our sf.net host repository to > >> GIT from CVS.[ Any input/discussion on this is highly appreciable ]. > > > > the authorship info really should be fixed before anything is finalized. > > and a git hook added to reject people pushing patches that lack proper > > author/committer fields. these commits by "root" are a good example of > > things that should not be happening. > > Agree. Do you know about any manual how to fix it by any script or setup > that conversion? I mean to have any convert table where for example will > be written conversion: > vampier -> Mike Frysinger. > root -> Subrata Modak
i use this script:
#!/bin/bash
tmp=$(mktemp)
cat << \EOF > ${tmp}
decode() {
awk -vid="$1" -vtype="$2" '$1 == id {
print "export GIT_"type"_NAME='\''" $3 " " $4 "'\'';"
print "export GIT_"type"_EMAIL='\''" $5 "'\'';"
}' ${author_file}
}
EOF
for x in cvs-authors authors ; do
export author_file=${PWD}/.git/$x
[ -e ${author_file} ] && break
done
git filter-branch \
--env-filter ". ${tmp};"' \
eval `decode "${GIT_AUTHOR_NAME}" AUTHOR`; \
eval `decode "${GIT_COMMITTER_NAME}" COMMITTER`; \
' "$@"
rm -f $tmp
use a normal authors file in like .git/authors and run it. the authors format
looks something like:
vapier = Mike Frysinger <[email protected]>
...
-mike
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
