diff options
author | Teddy Wing | 2020-08-29 19:37:39 +0200 |
---|---|---|
committer | Teddy Wing | 2020-08-29 20:48:48 +0200 |
commit | 760d49ce6f4a8b1f631fec654ae87300474541a9 (patch) | |
tree | d67c26b33cbe69ac8dc0fc7ea2a067be45cc177d /src/owner_repo.rs | |
parent | 8706dc07bcf3b4c965de8e9dd050bd8b97ebc693 (diff) | |
download | git-suggestion-760d49ce6f4a8b1f631fec654ae87300474541a9.tar.bz2 |
diff_options: Remove non-equals argument value handling
Tested out diff arguments with Git, and it turns out that arguments in
the following form:
$ git diff --word-diff color
are not allowed. This error results:
fatal: ambiguous argument 'color': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Thus, option all arguments require the equals character to specify the
value of those arguments.
We can make the logic much simpler by eliminating handling of
space-separated argument values altogether.
This fixes the problem of suggestion positional arguments being
misinterpreted as `OPT_OPTIONS` argument values.
Diffstat (limited to 'src/owner_repo.rs')
0 files changed, 0 insertions, 0 deletions