diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-02-03 14:16:04 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-02-03 14:16:04 -0800 |
commit | c167a96e68b9fb49cab7eb1f2814d7b32f7c0a1a (patch) | |
tree | 9cd4964f51f8c32133d5e5cce34bedd86e11ee4d /builtin/am.c | |
parent | 465c30a9c6f68c3bac25cd875624286baa37b41c (diff) | |
parent | a97262c62f1a31fcc7edf7629d313058bc7d66b5 (diff) |
Merge branch 'nd/diff-with-path-params'
A few options of "git diff" did not work well when the command was
run from a subdirectory.
* nd/diff-with-path-params:
diff: make -O and --output work in subdirectory
diff-no-index: do not take a redundant prefix argument
Diffstat (limited to 'builtin/am.c')
-rw-r--r-- | builtin/am.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/am.c b/builtin/am.c index b55f903f05..259dc1cd11 100644 --- a/builtin/am.c +++ b/builtin/am.c @@ -1642,7 +1642,7 @@ static int fall_back_threeway(const struct am_state *state, const char *index_pa init_revisions(&rev_info, NULL); rev_info.diffopt.output_format = DIFF_FORMAT_NAME_STATUS; - diff_opt_parse(&rev_info.diffopt, &diff_filter_str, 1); + diff_opt_parse(&rev_info.diffopt, &diff_filter_str, 1, rev_info.prefix); add_pending_sha1(&rev_info, "HEAD", our_tree, 0); diff_setup_done(&rev_info.diffopt); run_diff_index(&rev_info, 1); |