Permalink
Browse files

Reenable copy/rename detection in the status view

Reverts parts of 6d276a6.
  • Loading branch information...
jonas committed Aug 18, 2012
1 parent 6d276a6 commit 82458a4088bfd0f1364611428a580047a83ab932
Showing with 3 additions and 3 deletions.
  1. +3 −3 git.h
View
6 git.h
@@ -26,16 +26,16 @@
GIT_DIFF_INITIAL("--cached", context_arg, space_arg, "", new_name)
#define GIT_DIFF_STAGED(context_arg, space_arg, old_name, new_name) \
- "git", "diff-index", ENCODING_ARG, "--root", "--patch-with-stat", \
+ "git", "diff-index", ENCODING_ARG, "--root", "--patch-with-stat", "-C", "-M", \
"--cached", (context_arg), (space_arg), "HEAD", "--", (old_name), (new_name), NULL
#define GIT_DIFF_UNSTAGED(context_arg, space_arg, old_name, new_name) \
- "git", "diff-files", ENCODING_ARG, "--root", "--patch-with-stat", \
+ "git", "diff-files", ENCODING_ARG, "--root", "--patch-with-stat", "-C", "-M", \
(context_arg), (space_arg), "--", (old_name), (new_name), NULL
/* Don't show staged unmerged entries. */
#define GIT_DIFF_STAGED_FILES(output_arg) \
- "git", "diff-index", (output_arg), "--diff-filter=ACDMRTXB", "--cached", "HEAD", NULL
+ "git", "diff-index", (output_arg), "--diff-filter=ACDMRTXB", "-M", "--cached", "HEAD", NULL
#define GIT_DIFF_UNSTAGED_FILES(output_arg) \
"git", "diff-files", (output_arg), NULL

0 comments on commit 82458a4

Please sign in to comment.