yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #10982
[Branch ~yade-pkg/yade/git-trunk] Rev 4031: Add script to changes commit`s author`s names.
------------------------------------------------------------
revno: 4031
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Wed 2014-06-18 19:59:20 +0200
message:
Add script to changes commit`s author`s names.
added:
scripts/update_names.sh
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== added file 'scripts/update_names.sh'
--- scripts/update_names.sh 1970-01-01 00:00:00 +0000
+++ scripts/update_names.sh 2014-06-18 17:59:20 +0000
@@ -0,0 +1,67 @@
+#!/bin/sh
+# The script modifies authors names not to get duplicated names
+# Modifies the git directory!
+
+git filter-branch --commit-filter '
+ if [ "$GIT_AUTHOR_EMAIL" = "gladk@xxxxxxxxxx" ];
+ then
+ GIT_AUTHOR_EMAIL="gladky.anton@xxxxxxxxx";
+ git commit-tree "$@";
+ elif [ "$GIT_AUTHOR_EMAIL" = "bruno.chareyre@xxxxxxxxxxxxxxx" ]
+ then
+ GIT_AUTHOR_EMAIL="bruno.chareyre@xxxxxxxxxxx";
+ git commit-tree "$@";
+ elif [ "$GIT_AUTHOR_EMAIL" = "christian@localhost.localdomain" ]
+ then
+ GIT_AUTHOR_NAME="Christian Jakob";
+ GIT_AUTHOR_EMAIL="jakob@xxxxxxxxxxxxxxxxxxx";
+ git commit-tree "$@";
+ elif [ "$GIT_AUTHOR_EMAIL" = "donia.marzougui@xxxxxxxxxxxxxxx" ] || [ "$GIT_AUTHOR_NAME" = "dmarzougui" ] || [ "$GIT_AUTHOR_NAME" = "Donia" ] || [ "$GIT_AUTHOR_EMAIL" = "marzougui.donia@xxxxxxxxxx" ]
+ then
+ GIT_AUTHOR_NAME="Donia Marzougui";
+ GIT_AUTHOR_EMAIL="donia.marzougui@xxxxxxxxxxx";
+ git commit-tree "$@";
+ elif [ "$GIT_AUTHOR_NAME" = "Francois" ] ||[ "$GIT_AUTHOR_NAME" = "françois" ] || [ "$GIT_AUTHOR_NAME" = "Francois Kneib" ] || [ "$GIT_AUTHOR_NAME" = "François Kneib" ]
+ then
+ GIT_AUTHOR_NAME="Francois Kneib";
+ GIT_AUTHOR_EMAIL="francois.kneib@xxxxxxxxx";
+ git commit-tree "$@";
+ elif [ "$GIT_AUTHOR_NAME" = "Jan Stransky" ] ||[ "$GIT_AUTHOR_NAME" = "Jan Stránský" ] || [ "$GIT_AUTHOR_NAME" = "Jan Stransky" ] || [ "$GIT_AUTHOR_NAME" = "Jan Stránský" ]
+ then
+ GIT_AUTHOR_NAME="Jan Stransky";
+ GIT_AUTHOR_EMAIL="jan.stransky@xxxxxxxxxxx";
+ git commit-tree "$@";
+ elif [ "$GIT_AUTHOR_NAME" = "Jerome Duriez" ]
+ then
+ GIT_AUTHOR_NAME="Jerome Duriez";
+ GIT_AUTHOR_EMAIL="duriez@xxxxxxxxxxxxxxx";
+ git commit-tree "$@";
+ elif [ "$GIT_AUTHOR_NAME" = "Luc Scholtes" ] || [ "$GIT_AUTHOR_NAME" = "scholtes" ]
+ then
+ GIT_AUTHOR_NAME="Luc Scholtes";
+ GIT_AUTHOR_EMAIL="lscholtes63@xxxxxxxxx";
+ git commit-tree "$@";
+ elif [ "$GIT_AUTHOR_NAME" = "Luc Sibille" ]
+ then
+ GIT_AUTHOR_NAME="Luc Sibille";
+ GIT_AUTHOR_EMAIL="luc.sibille@xxxxxxxxxxxxxxx";
+ git commit-tree "$@";
+ elif [ "$GIT_AUTHOR_NAME" = "Raphael Maurin" ]
+ then
+ GIT_AUTHOR_NAME="Raphaël Maurin";
+ GIT_AUTHOR_EMAIL="raphael.maurin@xxxxxxxxx";
+ git commit-tree "$@";
+ elif [ "$GIT_AUTHOR_NAME" = "Raphael Maurin" ]
+ then
+ GIT_AUTHOR_NAME="Raphaël Maurin";
+ GIT_AUTHOR_EMAIL="raphael.maurin@xxxxxxxxx";
+ git commit-tree "$@";
+ elif [ "$GIT_AUTHOR_NAME" = "Kubeu" ]
+ then
+ GIT_AUTHOR_NAME="Alexander Eulitz";
+ GIT_AUTHOR_EMAIL="alexander.eulitz@xxxxxxxxxxxxxxxx";
+ git commit-tree "$@";
+ else
+ git commit-tree "$@";
+ fi' HEAD
+