JensDiemer

git autor email ändern...

Tag Cloud 3dsmax | 64bit | addons | Aptana | ASUS | AVI | backup | BeOS | bilder | blog | browser | CPU | creole | django | django-dbpreferences | django-dbtemplates | django-tagging | django-tools | django-weave | dokumentation | Eclipse | fernsehen | firefox | forms | formset | foto | git | Haiku | handy | hardware | i18n | javascript | jquery | Kino | lame | links | linux | locales | Loveparade | mac | markup | mencoder | merkwürdig | modul | mp3 | netzwerk | nokia | online | opensource | ovi | Petition | pip | plugin | plugins | podcast | pydev | pylucid | pys60 | python | relase | release | router | settings | software | sqlite | standalone | svn | thunderbird | Tip | ubuntu | ubuntuusers | unittest | video | virtualbox | virtualenv | vista | web | webspace | win7 | windows | xfce | xp | xvid

↑ git autor email ändern...  #

Vor 4 Monate veröffentlicht, durch jens.

Man kann bei github.com recht einfach bestehende SVN Repositories importieren. Dabei kann man auch gleich die Autoren anpassen. Das Problem ist allerdings, das man entweder zu allen Autoren einen github Account angeben muß, oder überhaupt keinen.

Also muß man das ganze selber im Nachhinein erledigen. Dazu nutzte ich dieses Skript:

Bash
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

git filter-branch --env-filter '

an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"

if [ "$GIT_COMMITTER_EMAIL" = "alte@email-adresse.tld" ]
then
    cn="Max Mustermann"
    cm="neuer@git-account.tld"
fi
if [ "$GIT_AUTHOR_EMAIL" = "alte@email-adresse.tld" ]
then
    an="Max Mustermann"
    am="neuer@git-account.tld"
fi

export GIT_AUTHOR_NAME="$an"
export GIT_AUTHOR_EMAIL="$am"
export GIT_COMMITTER_NAME="$cn"
export GIT_COMMITTER_EMAIL="$cm"
'

Mit diesem Befehl erhält man eine Liste aller vorhandenen Autoren:

Bash
1
git log --format='%aN' | sort -u

(Last update: 4. Mai 2010, 12:14 by jens.)

tags git