summaryrefslogtreecommitdiff
path: root/diff-helper.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-07-25 20:05:44 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-07-26 00:15:34 (GMT)
commite7baa4f45f4420a6d2da6a13e8959f8405c3ea19 (patch)
tree82690e08271cf72f7bcef79eec0e5d9f9b7e0047 /diff-helper.c
parent30b0535f251a42aa3936e44041a8d25e0e578ab9 (diff)
downloadgit-e7baa4f45f4420a6d2da6a13e8959f8405c3ea19.zip
git-e7baa4f45f4420a6d2da6a13e8959f8405c3ea19.tar.gz
git-e7baa4f45f4420a6d2da6a13e8959f8405c3ea19.tar.bz2
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 <junkio@cox.net>
Diffstat (limited to 'diff-helper.c')
-rw-r--r--diff-helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/diff-helper.c b/diff-helper.c
index 6649fb5..07ccd7c 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 */