[Interest] Where do all the non-branch files live?

Stephen Chu stephen at ju-ju.com
Mon Jun 18 20:32:50 CEST 2012


On 6/18/12 2:30 PM, Konstantin Tokarev wrote:
>
>
> 18.06.2012, 22:26, "Stephen Chu" <stephen at ju-ju.com>:
>> On 6/18/12 2:22 PM, Robin Burchell wrote:
>>
>>>   On Mon, Jun 18, 2012 at 8:11 PM, Stephen Chu <stephen at ju-ju.com> wrote:
>>>>   When I clone Qt 5 from gitorious, sub-modules like qtbase are not in any
>>>>   branch:
>>>>
>>>>   stephen-chus-mac-pro:qtbase stephenchu$ git branch
>>>>   * (no branch)
>>>>      master
>>>>
>>>>   Where are these non-branch files on gitorious? How do they get there?
>>>   You'll get this when you check out a given sha directly as opposed to
>>>   a branch like 'master'. This is done because qt5.git contains the most
>>>   recent shas of all modules known to be good (and work together). This
>>>   is called a "detached head" in git terminology.
>>
>> A-Ha! I knew it's some black magic. :) Thanks for the explanation. So
>> that's what those sha for.
>>
>> Now is there a way to see commits going into those detached heads?
>
> As usual, git log [hash].
>
>
Another black magic! Thanks. By now you probably figured out that I have 
no clue whatsoever on git. :)

Thanks again.



More information about the Interest mailing list