• P
    git p4: standardize submit cancel due to unchanged template · 5a41c16a
    Pete Wyckoff 提交于
    When editing the submit template, if no change was made to it,
    git p4 offers a prompt "Submit anyway?".  Answering "no" cancels
    the submit.
    
    Previously, a "no" answer behaves like a "[s]kip" answer to the
    failed-patch prompt, in that it proceeded to try to apply the
    rest of the commits.  Instead, put users back into the new
    "[s]kip / [c]ontinue" loop so that they can decide.  This makes
    both cases of patch failure behave identically.
    
    The return code of git p4 after a "no" answer is now the same
    as that for a "skip" due to failed patch; update a test to
    understand this.
    Signed-off-by: NPete Wyckoff <pw@padd.com>
    Acked-by: NLuke Diamand <luke@diamand.org>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    5a41c16a
t9805-git-p4-skip-submit-edit.sh 2.2 KB