-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git.c: correct NO_PARSEOPT, test --help-all
Remove the NO_PARSEOPT flag from various built-ins which have used parse_options() for a while, but hadn't had their listing here updated. Let's make sure that this doesn't drift out of sync in the future by asserting in our tests that anything with NO_PARSEOPT will fail to handle --git-completion-helper. The "diff" case is special, there we handle --git-completion-helper but not --help-all. Since the NO_PARSEOPT setting is intended for git-completion.bash we should remove the flag in those cases. Let's handle the edge case in our tests. For "receive-pack" and "difftool" we've been segfaulting on "--help-all" ever since 1b68387 (builtin/receive-pack.c: use parse_options API, 2016-03-02) and 03831ef (difftool: implement the functionality in the builtin, 2017-01-19). Let's mark the tests as failing for now, and handle that in a subsequent commit. For "fsmonitor--daemon" it has Windows/OSX-only handling of "--git-completion-helper", so let's skip it for now. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Loading branch information
Showing
2 changed files
with
56 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters