We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5292c5 commit c67ebe1Copy full SHA for c67ebe1
src/components/HistorySideBar.tsx
@@ -112,10 +112,13 @@ export const HistorySideBar: React.FunctionComponent<IHistorySideBarProps> = (
112
const uncommitted = React.useMemo<Git.ISingleCommitInfo>(() => {
113
return {
114
author: props.trans.__('You'),
115
- // INDEX or WORKING special ref
116
- commit: `${+(props.model.selectedHistoryFile?.status === 'staged')}`,
+ commit: `${
+ props.model.selectedHistoryFile?.status === 'staged'
117
+ ? Git.Diff.SpecialRef.INDEX
118
+ : Git.Diff.SpecialRef.WORKING
119
+ }`,
120
pre_commit: 'HEAD',
- is_binary: !!props.commits[0]?.is_binary,
121
+ is_binary: props.commits[0]?.is_binary ?? false,
122
commit_msg: props.trans.__('Uncommitted Changes'),
123
date: props.trans.__('now')
124
};
0 commit comments