Files
git/builtin
Pratik Karki 55071ea248 rebase: start implementing it as a builtin
This commit imitates the strategy that was used to convert the
difftool to a builtin. We start by renaming the shell script
`git-rebase.sh` to `git-legacy-rebase.sh` and introduce a
`builtin/rebase.c` that simply executes the shell script version,
unless the config setting `rebase.useBuiltin` is set to `true`.

The motivation behind this is to rewrite all the functionality of the
shell script version in the aforementioned `rebase.c`, one by one and
be able to conveniently test new features by configuring
`rebase.useBuiltin`.

In the original difftool conversion, if sane_execvp() that attempts to
run the legacy scripted version returned with non-negative status, the
command silently exited without doing anything with success, but
sane_execvp() should not return with non-negative status in the first
place, so we use die() to notice such an abnormal case.

We intentionally avoid reading the config directly to avoid
messing up the GIT_* environment variables when we need to fall back to
exec()ing the shell script. The test of builtin rebase can be done by
`git -c rebase.useBuiltin=true rebase ...`

Signed-off-by: Pratik Karki <predatoramigo@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2018-08-06 13:08:01 -07:00
..
2018-05-30 14:04:05 +09:00
2018-08-02 15:30:45 -07:00
2017-10-06 10:07:18 +09:00
2018-08-02 15:30:41 -07:00
2018-08-02 15:30:42 -07:00
2018-08-02 15:30:42 -07:00
2018-05-13 10:45:05 +09:00
2018-07-18 12:20:28 -07:00
2018-07-24 14:50:46 -07:00
2017-10-07 16:27:55 +09:00
2018-05-08 15:59:16 +09:00
2018-08-02 15:30:43 -07:00
2018-08-02 15:30:42 -07:00
2018-08-02 15:30:44 -07:00
2018-06-01 15:06:37 +09:00
2018-06-01 15:06:40 +09:00
2018-08-02 15:30:42 -07:00
2018-06-01 15:06:38 +09:00
2018-05-23 14:38:15 +09:00
2018-08-02 15:30:44 -07:00
2018-05-30 14:04:05 +09:00
2018-07-18 12:20:28 -07:00
2018-07-18 12:20:28 -07:00
2018-07-18 12:20:28 -07:00
2018-07-18 12:20:28 -07:00
2018-04-16 13:52:29 +09:00
2017-12-13 11:15:14 -08:00
2018-05-30 14:04:05 +09:00
2018-03-15 12:01:08 -07:00
2018-05-29 00:28:22 +09:00
2018-07-18 12:20:28 -07:00
2018-05-08 15:59:16 +09:00