Thanks Konstantin, Yes I tried git log $newname $(git merge-base $oldname 
$newname) and it works fine.
On Wednesday, September 4, 2013 10:55:41 AM UTC-4, Konstantin Khomoutov 

> On Wed, 4 Sep 2013 06:50:47 -0700 (PDT) 
> Ling < <javascript:>> 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 
For more options, visit

Reply via email to