composer/packagist — pull request #256 by simensen (2012-12-11 19:41:44+00:00)
Title: [WIP] Show source reference if it differs from display version

I can't count the number of times I wanted to know which hash Packagist had for a branch to see whether or not Packagist was accurately reflecting my repository. I looked for an open issue on this as I thought I had seen one at one point. The closest I found was #216 though it did not request this functionality directly.

I'm not sure if the logic I'm using should be better managed. I also don't know what the source reference is going to look like for subversion, mercurial, or whatever else Composer might support that I am not too familiar with.

I'm also not certain that this will matter if Packagist itself maintains a cache that might differ from what is stored in the entities. Is there a case where Packagist would be serving on source reference from the API but show an entirely different source reference when accessed like I am here?

Feedback is welcome.

![2012-12-11_1332](https://f.cloud.github.com/assets/191200/6608/29080870-43ca-11e2-8358-fb015f55c08f.png)

![2012-12-11_1340](https://f.cloud.github.com/assets/191200/6617/bb1db37c-43ca-11e2-8388-b62f4e42ea0f.png)