From e7baa4f45f4420a6d2da6a13e8959f8405c3ea19 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 25 Jul 2005 13:05:44 -0700 Subject: Use symbolic constants for diff-raw status indicators. Both Cogito and StGIT prefer to see 'A' for new files. The current 'N' is visually harder to distinguish from 'M', which is used for modified files. Prepare the internals to use symbolic constants to make the change easier. Signed-off-by: Junio C Hamano --- diff-helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'diff-helper.c') diff --git a/diff-helper.c b/diff-helper.c index 6649fb548f..07ccd7cc38 100644 --- a/diff-helper.c +++ b/diff-helper.c @@ -94,7 +94,8 @@ int main(int ac, const char **av) { if (!strchr("MCRNDU", status)) break; two_paths = score = 0; - if (status == 'R' || status == 'C') + if (status == DIFF_STATUS_RENAMED || + status == DIFF_STATUS_COPIED) two_paths = 1; /* pick up score if exists */ -- cgit v1.3-5-g9baa