On Wed, 4 Sep 2013 06:50:47 -0700 (PDT)
Ling <oylf1...@gmail.com> wrote:

> Thanks Konstantin and quesiton? you mean git log $newname ^$basename,
> and is the $newname $basename are: newname is the after pushed 
> refs/heads/Lingfei_test2? and basename is before pushed: 
> refs/heads/Lingfei_test2?

No, $newname and $oldname are the SHA-1 names of the prospective new
commit for the ref being updated, and its current tip commit,
respectively.

Did you read the githooks manual page?  It tells in clear simple words
how a pre-receive hook is passed the information about which refs are
about to be updated by the current push operation, and how.  That's
what you're supposed to parse and use.

$basename is the the SHA-1 name of the commit obtained by the call
`git merge-base $oldname $newname`.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to