[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: weird tags in libtool's experimental git repo
From: |
Jim Meyering |
Subject: |
Re: weird tags in libtool's experimental git repo |
Date: |
Sun, 16 Mar 2008 12:49:37 +0100 |
Ralf Wildenhues <address@hidden> wrote:
...
> I've had quite good results with this conversion, when done after your
> initial conversion (thanks BTW for help from Jim and the git list):
>
> git filter-branch -d /dev/shm/t --tree-filter '
> line=`sed -n "s,^[12][90][0-9][0-9]-[0-1][0-9]-[0-3][0-9]
> *\([A-Za-z].*\),\1,
> s,.* \([A-Za-z].*\),\1,
> /./{
> s/(tiny change)//
> s/ *$//
> p
> q
> }" ChangeLog`
> author=`echo "$line" | sed "s, *[<(].*,,"`
> email=`echo "$line" | sed "s,[^,(]*[<(],<,; s/[)>].*/>/"`
> test -n "$author" && test -n "$email" && {
> GIT_AUTHOR_NAME="$author"
> GIT_AUTHOR_EMAIL="$email"
> export GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL
> }'
Nice!
I wish git filter-branch existed back when I converted coreutils.
Assuming everyone agrees, I propose to rerun the cvs-to-git conversion
and to leave the repository in receive.denynonfastforwards=false mode
so you can apply whatever filters you want and push the resulting
server-repo-modifying changes.
Then, once you're happy with the result, set receive.denynonfastforwards
back to the default "true" setting.