summaryrefslogtreecommitdiff
path: root/wt-status.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-03-21 21:06:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-03-21 21:06:55 (GMT)
commit328455fc588d8b5a9357f9b1c053cfffc8577e15 (patch)
tree6ec5156e994fa69d302fcaae48366c8b1b2c71bc /wt-status.c
parent28ed8d7be9363a19ea74626d5c84dffbfa959787 (diff)
parentc9fc4415e2c7d7673cdad34d41114ede3435a395 (diff)
downloadgit-328455fc588d8b5a9357f9b1c053cfffc8577e15.zip
git-328455fc588d8b5a9357f9b1c053cfffc8577e15.tar.gz
git-328455fc588d8b5a9357f9b1c053cfffc8577e15.tar.bz2
Merge branch 'maint'
* maint: diff.c: diff.renamelimit => diff.renameLimit in message wt-status: fix possible use of uninitialized variable fast-import: clarify "inline" logic in file_change_m run-command: always set failed_errno in start_command transport: drop "int cmp = cmp" hack drop some obsolete "x = x" compiler warning hacks fast-import: use pointer-to-pointer to keep list tail
Diffstat (limited to 'wt-status.c')
-rw-r--r--wt-status.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/wt-status.c b/wt-status.c
index 7bb3f63..54f4391 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -264,7 +264,7 @@ static void wt_status_print_change_data(struct wt_status *s,
{
struct wt_status_change_data *d = it->util;
const char *c = color(change_type, s);
- int status = status;
+ int status;
char *one_name;
char *two_name;
const char *one, *two;
@@ -292,6 +292,9 @@ static void wt_status_print_change_data(struct wt_status *s,
}
status = d->worktree_status;
break;
+ default:
+ die("BUG: unhandled change_type %d in wt_status_print_change_data",
+ change_type);
}
one = quote_path(one_name, -1, &onebuf, s->prefix);