Where is the Git commit info set in Xcode 4?

前端 未结 2 496
攒了一身酷
攒了一身酷 2021-01-03 09:21

Note that this isn\'t a problem I face, I\'m more interested in what is going on here, because this just doesn\'t make (much) sense to me.

Where is the info shown be

2条回答
  •  抹茶落季
    2021-01-03 09:49

    Where is the info shown below set?

    enter image description here

    Actually, I think the answer was staring right at you all along... I'm fairly certain that all this info really is coming from my contact card, and is stored and used by Xcode independently of the version control system. In fact, I mentioned in an earlier tweet (which you replied to) that I'd used my contact card. I probably should have pointed out that, initially, the commit author name in use was my local username and there was no photo.

    Clicking on the photo reveals a popover with a number of fields I can fill in about myself, like first name, last name, and some contact information. There's a Choose Card... button, which I used to attach my card.

    So it does seem like Xcode attaches my contact card to my commit info, but it turns out that Xcode uses it for its own display purposes rather than tying it to my Git author info. Plus, as mentioned in the comments, I can't find the info in any of my Git config files, and furthermore I don't use GitHub yet (cue recommendations, links and testimonials as to its awesomeness).

    Oh and I just checked... changing one of the fields in my contact card causes the change to be reflected in Xcode, and vice versa.

提交回复
热议问题