refresh_index: rename format variables
commit4bd4e73093eb741a87b7d80bc84469d880f4e2f3
authorJeff King <peff@peff.net>
Fri, 18 Nov 2011 11:11:28 +0000 (18 06:11 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 Nov 2011 19:55:05 +0000 (18 11:55 -0800)
treed21114b70ddd0407dd2ee6a6556aa798f19738e4
parentd05e69701053c0cf786e99251879f860702374b7
refresh_index: rename format variables

When refreshing the index, for modified (or unmerged) files we will print
"needs update" (or "needs merge") for plumbing, or line similar to the
output from "diff --name-status" for porcelain.

The variables holding which type of message to show are named after the
plumbing messages. However, as we begin to differentiate more cases at the
porcelain level (with the plumbing message staying the same), that naming
scheme will become awkward.

Instead, name the variables after which case we found (modified or
unmerged), not what we will output.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c