diff options
author | Edward Thomson <ethomson@microsoft.com> | 2015-09-23 11:07:04 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@github.com> | 2016-05-26 13:01:06 -0500 |
commit | 19e46645af31b594514cdf88e0ff037e15f39b9b (patch) | |
tree | 62f248ec577a59f9a4604fd5bf0adfba68c1ce0b /src/patch_parse.c | |
parent | d536ceacf56e0ff1f02c8dc29d496bc1c357914f (diff) | |
download | libgit2-19e46645af31b594514cdf88e0ff037e15f39b9b.tar.gz |
patch printing: include rename information
Diffstat (limited to 'src/patch_parse.c')
-rw-r--r-- | src/patch_parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/patch_parse.c b/src/patch_parse.c index df2492ee5..aa767f3b9 100644 --- a/src/patch_parse.c +++ b/src/patch_parse.c @@ -306,7 +306,7 @@ static int parse_header_rename( static int parse_header_renamefrom( git_patch_parsed *patch, patch_parse_ctx *ctx) { - patch->base.delta->status |= GIT_DELTA_RENAMED; + patch->base.delta->status = GIT_DELTA_RENAMED; return parse_header_rename( (char **)&patch->base.delta->old_file.path, @@ -317,7 +317,7 @@ static int parse_header_renamefrom( static int parse_header_renameto( git_patch_parsed *patch, patch_parse_ctx *ctx) { - patch->base.delta->status |= GIT_DELTA_RENAMED; + patch->base.delta->status = GIT_DELTA_RENAMED; return parse_header_rename( (char **)&patch->base.delta->new_file.path, |