Getting the line content for git blame #24539
-
How can I get the line content when runing “git blame”? Like if I use git blame on CLI I get the results in the format:
I’d like to know what to add to the bellow “blame” query? query blame { When I run it I get the bellow response: { |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @dimiterbak, thank you for being here! As far as I know the only fields available are the ones you’ve already used on your query: startingLine, endingLine, author and age. |
Beta Was this translation helpful? Give feedback.
-
Hello @dimiterbak! In addition to what @AndreaGriffiths11 mentioned ✨ , I’d like to clarify that there isn’t a specific field (or field within an existing field) that would give you the line content beyond what’s available in a blame’s BlameRangeGet started with one of our guides, or jump straight into the API documentation. Also, there’s not a specific REST API endpoint that exposes the same information. I hope this helps! |
Beta Was this translation helpful? Give feedback.
Hello @dimiterbak! In addition to what @AndreaGriffiths11 mentioned ✨ , I’d like to clarify that there isn’t a specific field (or field within an existing field) that would give you the line content beyond what’s available in a blame’s
GitHub Developerblame range
object:BlameRange
Get started with one of our guides, or jump straight into the API documentation.
Also, there’s not a specific REST API endpoint that exposes the same information. I hope this helps!