Skip to content

Turn git-rebase--*.sh to external helpers

Nguyễn Thái Ngọc Duy git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3rebase: move common functions to rebase--lib.shMakefile git-rebase--lib.sh git-rebase.sh+43 -410 replies
2/3rebase: move cleanup code to exit_rebase()git-rebase--lib.sh git-rebase.sh+39 -361 reply
3/3rebase: turn git-rebase--*.sh into separate programsMakefile git-rebase--am.sh git-rebase--interactive.sh +2 more+62 -191 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Turn git-rebase--*.sh to external helpers
Quoted 10 lines · Matthieu Moy

There's a funny exercice there: the git-rebase--$type.sh scripts are not called as external helpers, but like this:

run_specific_rebase () {
        if [ "$interactive_rebase" = implied ]; then GIT_EDITOR=:
                export GIT_EDITOR autosquash=
        fi
        . git-rebase--$type

Quoted 5 lines
        # ...

So, turning these scripts into builtins would first require turning this ". git-rebase--$type" into an actual command call. But nothing unfeasible.

We do want to turn all these scripts to C in the end, regardless if the conversion is part of any GSoC. So I dug up my code and prepared this. Now we need people to convert any git-rebase*.sh to C :)

Nguyễn Thái Ngọc Duy (3):
rebase: move common functions to rebase--lib.sh
rebase: move cleanup code to exit_rebase()
rebase: turn git-rebase--*.sh into separate programs

 Makefile                             |   7 +--
 git-rebase--am.sh (mode +x)          |  23 ++++----
 git-rebase--interactive.sh (mode +x) |  15 ++++++
 git-rebase--lib.sh (new +x)          |  79 +++++++++++++++++++++++++++
 git-rebase--merge.sh (mode +x)       |  14 +++++
 git-rebase.sh                        | 100 ++++++-----------------------------
 6 files changed, 143 insertions(+), 95 deletions(-)
 mode change 100644 => 100755 git-rebase--am.sh
 mode change 100644 => 100755 git-rebase--interactive.sh
 create mode 100755 git-rebase--lib.sh
 mode change 100644 => 100755 git-rebase--merge.sh
Signature · 1 line
2.7.0.377.g4cd97dd