Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Git Blame/Authors a previous revision with Xcode 11?

With Xcode 10.2, I could select the "Authors" view, then select a previous git revision to blame from the bottom picker: picker is available

But with Xcode 11 beta, when I select the "Authors" view, I'm unable to select a past revision to blame because the picker is missing: picker is missing

Was that feature removed, or are there new steps to do to blame the lines of code for a past revision? To illustrate it even more, I'd like to see in Xcode 11 a past Blame like GitHub does when you blame a specific previous revision.

like image 363
Cœur Avatar asked Jun 12 '19 09:06

Cœur


People also ask

How do I blame git in Xcode?

Git Blame It is still possible to use the git blame command, though. Right-click the line of code you're interested in and choose Show Last Change For Line from the contextual menu. This brings up the commit that modified that line of code.

How do I see Xcode history?

Select the file for which you want to see the commit history. Then go to View > Version Editor > Show Version Editor (or just select the Comparison view from the top-right toolbar icon - same place as the Blame view). Clicking on the commit label below the editor will reveal the history including dates.

How do I blame a file in git?

The git blame command is used to examine the contents of a file line by line and see when each line was last modified and who the author of the modifications was. The output format of git blame can be altered with various command line options.

How do I git blame on GitHub?

On GitHub.com, navigate to the main page of the repository. Click to open the file whose line history you want to view. In the upper-right corner of the file view, click Blame to open the blame view.


2 Answers

It has been moved here

enter image description here

It has been moved here

like image 118
腾 吉 Avatar answered Sep 25 '22 00:09

腾 吉


for a git blame version click Editor->Author as it, sure it moved enter image description here

you can selectenter image description here the icon located in top-right of Xcode to find a previous revision

like image 32
Acton Avatar answered Sep 26 '22 00:09

Acton