A worked example, rendered from real sample data. Sign in to run the tool on your own input.
src/app.ts
15{
"file": "src/app.ts",
"lineNumber": 15,
"blameInfo": {
"commit": "abc1234f5678",
"author": "alice@example.com",
"date": "2024-03-15 14:32:00",
"message": "Refactor database connection logic",
"parentCommit": "def5678abc12"
},
"contextLines": [
{
"line": 13,
"code": " const pool = createPool(config);",
"author": "bob@example.com",
"hash": "abc1234f5678"
},
{
"line": 14,
"code": " pool.connect();",
"author": "alice@example.com",
"hash": "abc1234f5678"
},
{
"line": 15,
"code": " return pool;",
"author": "alice@example.com",
"hash": "abc1234f5678",
"isTarget": true
},
{
"line": 16,
"code": "}",
"author": "bob@example.com",
"hash": "def5678abc12"
}
],
"history": [
{
"hash": "abc1234f5678",
"author": "alice@example.com",
"date": "2024-03-15",
"message": "Refactor"
},
{
"hash": "def5678abc12",
"author": "bob@example.com",
"date": "2024-02-20",
"message": "Initial impl"
}
]
}
Simulate git blame functionality to see commit history and authorship of code lines. Part of the DevTools Surf developer suite. Browse more tools in the Developer Utilities collection.