Hi Konstantin,

Exactly what I needed, I'll read the manual reference that you indicated.

Thanks very much.

On Fri, Dec 10, 2010 at 15:34, Konstantin Khomoutov <khomou...@gmail.com> wrote:
> Marcello Henrique wrote:
>> The first option, commits made by different committers which are, in
>> fact, the same person.
> Then you should probably use a properly instrumented call to
> `git filter-branch --commit-filter`
> According to the git-filter-branch manual [1], it exports a set of
> environment variables GIT_AUTHOR_* and GIT_COMMIT_* whose values can
> be changed in the filter code to affect the recorded commit.
>
> I think that should be something like:
>
> $ git filter-branch --commit-filter '
>  if [ "$GIT_AUTHOR_NAME" = "Marcello Henrique" ]; then
>    GIT_AUTHOR_NAME="John Random Hacker";
>    GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME";
>    GIT_AUTHOR_EMAIL="bi...@microsoft.com";
>    GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL";
>  fi' HEAD
>
> May be the filter code should also `export` the changed variables -- I
> don't really know.
>
> 1. http://www.kernel.org/pub/software/scm/git/docs/git-filter-branch.html
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Git for human beings" group.
> To post to this group, send email to git-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> git-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/git-users?hl=en.
>
>



-- 
Marcello Henrique
Blog - http://faraohh.wordpress.com
Associação Software Livre de Goiás (www.aslgo.org.br)
Cercomp - UFG (www.cercomp.ufg.br)

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to