------------------------------------------------------------ revno: 4031 committer: Anton Gladky <[email protected]> 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" = "[email protected]" ]; + then + GIT_AUTHOR_EMAIL="[email protected]"; + git commit-tree "$@"; + elif [ "$GIT_AUTHOR_EMAIL" = "[email protected]" ] + then + GIT_AUTHOR_EMAIL="[email protected]"; + git commit-tree "$@"; + elif [ "$GIT_AUTHOR_EMAIL" = "[email protected]" ] + then + GIT_AUTHOR_NAME="Christian Jakob"; + GIT_AUTHOR_EMAIL="[email protected]"; + git commit-tree "$@"; + elif [ "$GIT_AUTHOR_EMAIL" = "[email protected]" ] || [ "$GIT_AUTHOR_NAME" = "dmarzougui" ] || [ "$GIT_AUTHOR_NAME" = "Donia" ] || [ "$GIT_AUTHOR_EMAIL" = "[email protected]" ] + then + GIT_AUTHOR_NAME="Donia Marzougui"; + GIT_AUTHOR_EMAIL="[email protected]"; + 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="[email protected]"; + 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="[email protected]"; + git commit-tree "$@"; + elif [ "$GIT_AUTHOR_NAME" = "Jerome Duriez" ] + then + GIT_AUTHOR_NAME="Jerome Duriez"; + GIT_AUTHOR_EMAIL="[email protected]"; + git commit-tree "$@"; + elif [ "$GIT_AUTHOR_NAME" = "Luc Scholtes" ] || [ "$GIT_AUTHOR_NAME" = "scholtes" ] + then + GIT_AUTHOR_NAME="Luc Scholtes"; + GIT_AUTHOR_EMAIL="[email protected]"; + git commit-tree "$@"; + elif [ "$GIT_AUTHOR_NAME" = "Luc Sibille" ] + then + GIT_AUTHOR_NAME="Luc Sibille"; + GIT_AUTHOR_EMAIL="[email protected]"; + git commit-tree "$@"; + elif [ "$GIT_AUTHOR_NAME" = "Raphael Maurin" ] + then + GIT_AUTHOR_NAME="Raphaël Maurin"; + GIT_AUTHOR_EMAIL="[email protected]"; + git commit-tree "$@"; + elif [ "$GIT_AUTHOR_NAME" = "Raphael Maurin" ] + then + GIT_AUTHOR_NAME="Raphaël Maurin"; + GIT_AUTHOR_EMAIL="[email protected]"; + git commit-tree "$@"; + elif [ "$GIT_AUTHOR_NAME" = "Kubeu" ] + then + GIT_AUTHOR_NAME="Alexander Eulitz"; + GIT_AUTHOR_EMAIL="[email protected]"; + git commit-tree "$@"; + else + git commit-tree "$@"; + fi' HEAD +
_______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

