]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/rebase.c
builtin rebase: use no-op editor when interactive is "implied"
authorPratik Karki <predatoramigo@gmail.com>
Wed, 8 Aug 2018 15:36:34 +0000 (21:21 +0545)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Oct 2018 05:16:05 +0000 (14:16 +0900)
commit3dba9d08842226483c2d146e6dd37a6bfd27914e
treea1937bee1569a0b78de061191550a6e155844ee6
parentcda614e489a4da3a4824af2f2e17379131e1f048
builtin rebase: use no-op editor when interactive is "implied"

Some options are only handled by the git-rebase--interactive backend,
even if run non-interactively. For this awkward situation (run
non-interactively, but use the interactive backend), the shell scripted
version of `git rebase` introduced the concept of an "implied
interactive rebase". All it does is to replace the editor by a dummy one
(`:` is the Unix command that takes arbitrary command-line parameters,
ignores them and simply exits with success).

Signed-off-by: Pratik Karki <predatoramigo@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rebase.c