Show 21 quoted lines
>> >> + if (fn) {
>> >> + ret = fn(argc, argv, prefix, repo);
>> >> +
>> >> + /*
>> >> + * The subcommand implementations return 0 on success, a
>> >> + * negative value on failure, and STASH_APPLY_CONFLICT
>> >> + * when applying a stash entry resulted in conflicts.
>> >> + * Map failures to 128, the status die() uses, so that
>> >> + * exit status 1 unambiguously indicates conflicts.
>> >> + */
>> >> + if (ret < 0)
>> >> + return 128;
>> >> + return ret;
>> >> + } else if (!argc)
>> >> return !!push_stash_unassumed(0, NULL, prefix, repo);
>> >
>> > Style. Once one of "if", "else if" and "else" cascade gains
>> > {braches}, others should do so as well.
>
> I would love to have a linter rule for this, since I keep forgetting
> and it's a waste of time for others to remind me.