Skip to content

Commit b834483

Browse files
committed
showing an alert here when there are no changes staged but you press commit
1 parent 4c01f80 commit b834483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ _.each(view.list, function (elem) {
214214

215215
elem.key(['C-c'], function () {
216216
if (git.getStagedFiles().length < 1) {
217-
// TODO: alert
217+
main.showPopup("You need to stage files first");
218218
return;
219219
}
220220

0 commit comments

Comments
 (0)