summaryrefslogtreecommitdiff
path: root/builtin/diff-index.c
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2018-11-14 08:25:29 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-11-16 11:52:13 +0900
commitf57696802c300494562f4287e88f07540b3dbd4a (patch)
tree5c5cd604fcef15b0f93d231d9c06850726c794de /builtin/diff-index.c
parentTenth batch for 2.20 (diff)
downloadtgif-f57696802c300494562f4287e88f07540b3dbd4a.tar.xz
rebase: really just passthru the `git am` options
Currently, we parse the options intended for `git am` as if we wanted to handle them in `git rebase`, and then reconstruct them painstakingly to define the `git_am_opt` variable. However, there is a much better way (that I was unaware of, at the time when I mentored Pratik to implement these options): OPT_PASSTHRU_ARGV. It is intended for exactly this use case, where command-line options want to be parsed into a separate `argv_array`. Let's use this feature. Incidentally, this also allows us to address a bug discovered by Phillip Wood, where the built-in rebase failed to understand that the `-C` option takes an optional argument. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/diff-index.c')
0 files changed, 0 insertions, 0 deletions