diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-09-09 22:02:24 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-09-09 22:02:25 +0300 |
commit | 428dce9f4d70b44b61c19c36f3dbe5b3f58aeba2 (patch) | |
tree | 0200e7e6172df628030f2695958be23f074f81b0 /range-diff.c | |
parent | 526c4906f8a05dc0755b4719887cd0376e6e4e5d (diff) | |
parent | b75747829f4c277323c78b1c5973ad63ea038a2d (diff) |
Merge branch 'js/range-diff-with-pathspec'
Allow passing a pathspec to "git range-diff".
* js/range-diff-with-pathspec:
range-diff: optionally accept pathspecs
range-diff: consistently validate the arguments
range-diff: reorder argument handling
Diffstat (limited to 'range-diff.c')
-rw-r--r-- | range-diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/range-diff.c b/range-diff.c index f63b3ffc20..124dd678c3 100644 --- a/range-diff.c +++ b/range-diff.c @@ -57,9 +57,9 @@ static int read_patches(const char *range, struct string_list *list, "--pretty=medium", "--notes", NULL); + strvec_push(&cp.args, range); if (other_arg) strvec_pushv(&cp.args, other_arg->v); - strvec_push(&cp.args, range); cp.out = -1; cp.no_stdin = 1; cp.git_cmd = 1; |