Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit fe8eed5

Browse files
authored
Add note that there is nothing to commit in git status plugin (#863)
* Add note that there is nothing to commit * Fix lint
1 parent af95037 commit fe8eed5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plugins/GitStatus.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ class GitStatusComponent extends React.Component<GitStatusProps, GitStatusState>
445445

446446
return <div style={{ padding: "10px" }}>
447447
<div>{branchText}</div>
448+
{this.state.gitStatus.length === 0 ? <div>Nothing to commit, working tree clean.</div> : undefined}
448449
<GitStatusSection
449450
sectionType="Changes to be committed:"
450451
files={stagedFilesDescriptions}

0 commit comments

Comments
 (0)