diff options
author | Edward Thomson <ethomson@microsoft.com> | 2013-08-21 14:07:53 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2013-08-28 08:30:19 -0500 |
commit | 17c7fbf6d276443344c54f55800367b9837c0259 (patch) | |
tree | 97aeafdfa0eca4736a4f0cd733250f5d150278e8 /src/status.c | |
parent | 1ef05e3f0ea8fa8db2167307101c8c43d1c1784b (diff) | |
download | libgit2-17c7fbf6d276443344c54f55800367b9837c0259.tar.gz |
Split rewrites, status doesn't return rewrites
Ensure that we apply splits to rewrites, even if we're not
interested in examining it closely for rename/copy detection.
In keeping with core git, status should not display rewrites,
it should simply show files as "modified".
Diffstat (limited to 'src/status.c')
-rw-r--r-- | src/status.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/status.c b/src/status.c index b2353258b..4a0d65092 100644 --- a/src/status.c +++ b/src/status.c @@ -284,8 +284,10 @@ int git_status_list_new( diffopt.flags = diffopt.flags | GIT_DIFF_IGNORE_SUBMODULES; if ((flags & GIT_STATUS_OPT_RENAMES_FROM_REWRITES) != 0) - findopt.flags = findopt.flags | GIT_DIFF_FIND_AND_BREAK_REWRITES | - GIT_DIFF_FIND_RENAMES_FROM_REWRITES; + findopt.flags = findopt.flags | + GIT_DIFF_FIND_AND_BREAK_REWRITES | + GIT_DIFF_FIND_RENAMES_FROM_REWRITES | + GIT_DIFF_BREAK_REWRITES_FOR_RENAMES_ONLY; if (show != GIT_STATUS_SHOW_WORKDIR_ONLY) { if ((error = git_diff_tree_to_index( |