summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2ee6294)
raw | patch | inline | side by side (parent: 2ee6294)
author | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 10 Apr 2008 21:45:03 +0000 (23:45 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 10 Apr 2008 21:45:03 +0000 (23:45 +0200) |
It hides the error message.
tig.c | patch | blob | history |
index a3d22320943ac45ecb2dc738868d2d7629096a0b..83523de419bc34c1036a014881bb3629f7d8c52d 100644 (file)
--- a/tig.c
+++ b/tig.c
return FALSE;
}
- if (!status_update_files(view, line + 1))
+ if (!status_update_files(view, line + 1)) {
report("Failed to update file status");
+ return FALSE;
+ }
} else if (!status_update_file(line->data, line->type)) {
report("Failed to update file status");
+ return FALSE;
}
return TRUE;
{
switch (request) {
case REQ_STATUS_UPDATE:
- stage_update(view, line);
+ if (!stage_update(view, line))
+ return REQ_NONE;
break;
case REQ_EDIT: