diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-09-09 12:02:24 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-09-09 12:02:25 -0700 |
| commit | 428dce9f4d70b44b61c19c36f3dbe5b3f58aeba2 (patch) | |
| tree | 0200e7e6172df628030f2695958be23f074f81b0 /range-diff.c | |
| parent | Merge branch 'jk/tempfile-active-flag-cleanup' (diff) | |
| parent | range-diff: optionally accept pathspecs (diff) | |
| download | git-428dce9f4d70b44b61c19c36f3dbe5b3f58aeba2.tar.gz git-428dce9f4d70b44b61c19c36f3dbe5b3f58aeba2.zip | |
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; |
