Skip to content

Commit

Permalink
Change "Blame:" to "Author:" in status bar for friendlier language (#180
Browse files Browse the repository at this point in the history
)

Co-authored-by: TJ Kandala <[email protected]>
  • Loading branch information
felixfbecker and tjkandala authored May 27, 2021
1 parent 814f186 commit e265273
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/blame.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ describe('getBlameStatusBarItem()', () => {
sourcegraph: SOURCEGRAPH as any,
now: NOW,
}).text
).toBe('Blame: (testUserName) i, 2 months ago')
).toBe('Author: (testUserName) i, 2 months ago')
})

it('displays the most recent hunk if there are no selections', () => {
Expand All @@ -334,7 +334,7 @@ describe('getBlameStatusBarItem()', () => {
sourcegraph: SOURCEGRAPH as any,
now: NOW,
}).text
).toBe('Blame: e, 21 days ago')
).toBe('Author: e, 21 days ago')

expect(
getBlameStatusBarItem({
Expand All @@ -343,6 +343,6 @@ describe('getBlameStatusBarItem()', () => {
sourcegraph: SOURCEGRAPH as any,
now: NOW,
}).text
).toBe('Blame: e, 21 days ago')
).toBe('Author: e, 21 days ago')
})
})
6 changes: 3 additions & 3 deletions src/blame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export const getBlameStatusBarItem = ({
)

return {
text: `Blame: ${username}${displayName}, ${distance}`,
text: `Author: ${username}${displayName}, ${distance}`,
command: { id: 'open', args: [linkURL] },
tooltip: hoverMessage,
}
Expand All @@ -220,7 +220,7 @@ export const getBlameStatusBarItem = ({
if (!mostRecentHunk) {
// Probably a network error
return {
text: 'Blame: not found',
text: 'Author: not found',
}
}
const { displayName, username, distance, linkURL, hoverMessage } = getDisplayInfoFromHunk(
Expand All @@ -230,7 +230,7 @@ export const getBlameStatusBarItem = ({
)

return {
text: `Blame: ${username}${displayName}, ${distance}`,
text: `Author: ${username}${displayName}, ${distance}`,
command: { id: 'open', args: [linkURL] },
tooltip: hoverMessage,
}
Expand Down

0 comments on commit e265273

Please sign in to comment.