git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Nguyễn Thái Ngọc Duy" <pclouds@gmail.com>
To: git@vger.kernel.org
Cc: "Nguyễn Thái Ngọc Duy" <pclouds@gmail.com>
Subject: [PATCH/WIP 0/8] Convert git-rebase.sh to C
Date: Wed, 18 Mar 2015 16:55:39 +0700	[thread overview]
Message-ID: <1426672547-11369-1-git-send-email-pclouds@gmail.com> (raw)

In the spirit of sharing code proactively [1], despite my embarrassment,
this is what I got for converting git-rebase.sh to C. Note that this
is only about git-rebase.sh, not git-rebase--*.sh. Some changes in
git-rebase.sh are pushed back to git-rebase--*.sh. The idea is we
convert git-rebase.sh first, then the rest later.

Anybody who wants to base their work on this code, feel free to
--reset-author (and take all the bugs with you, I'm sure there are
lots of them). This work is from 2013. git-rebase.sh has received lots
of updates since then, so there's still lots of work to do.

[1] http://article.gmane.org/gmane.comp.version-control.git/265699

Nguyễn Thái Ngọc Duy (8):
  strbuf: add and use strbuf_read_file_or_die()
  Move reset_tree from builtin/checkout.c to unpack-trees.c
  rebase: turn rebase--am into a separate program
  rebase: turn rebase--merge into a separate program
  rebase: turn rebase--interactive into a separate program
  rebase: remove unused function
  rebase: move resolvemsg to rebase--* scripts
  Build in rebase

 Makefile                                |   8 +-
 builtin.h                               |   1 +
 builtin/blame.c                         |   4 +-
 builtin/checkout.c                      |  40 +-
 builtin/commit.c                        |  16 +-
 builtin/merge.c                         |  32 +-
 builtin/notes.c                         |   4 +-
 builtin/rebase.c (new)                  | 752 ++++++++++++++++++++++++++++++++
 builtin/tag.c                           |   7 +-
 commit.c                                |   4 +-
 commit.h                                |   4 +-
 contrib/examples/git-rebase.sh (new +x) | 532 ++++++++++++++++++++++
 git-rebase--am.sh (mode +x)             |  39 ++
 git-rebase--interactive.sh (mode +x)    |  41 +-
 git-rebase--merge.sh (mode +x)          |  39 ++
 git-rebase.sh (gone)                    | 544 -----------------------
 git.c                                   |   1 +
 strbuf.c                                |   8 +
 strbuf.h                                |   1 +
 unpack-trees.c                          |  33 ++
 unpack-trees.h                          |   4 +
 21 files changed, 1480 insertions(+), 634 deletions(-)
 create mode 100644 builtin/rebase.c
 create mode 100755 contrib/examples/git-rebase.sh
 mode change 100644 => 100755 git-rebase--am.sh
 mode change 100644 => 100755 git-rebase--interactive.sh
 mode change 100644 => 100755 git-rebase--merge.sh
 delete mode 100755 git-rebase.sh

-- 
2.3.0.rc1.137.g477eb31

             reply	other threads:[~2015-03-18  9:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-18  9:55 Nguyễn Thái Ngọc Duy [this message]
2015-03-18  9:55 ` [PATCH/WIP 1/8] strbuf: add and use strbuf_read_file_or_die() Nguyễn Thái Ngọc Duy
2015-03-18  9:55 ` [PATCH/WIP 2/8] Move reset_tree from builtin/checkout.c to unpack-trees.c Nguyễn Thái Ngọc Duy
2015-03-18  9:55 ` [PATCH/WIP 3/8] rebase: turn rebase--am into a separate program Nguyễn Thái Ngọc Duy
2015-03-18  9:55 ` [PATCH/WIP 4/8] rebase: turn rebase--merge " Nguyễn Thái Ngọc Duy
2015-03-18  9:55 ` [PATCH/WIP 5/8] rebase: turn rebase--interactive " Nguyễn Thái Ngọc Duy
2015-03-18  9:55 ` [PATCH/WIP 6/8] rebase: remove unused function Nguyễn Thái Ngọc Duy
2015-03-18  9:55 ` [PATCH/WIP 7/8] rebase: move resolvemsg to rebase--* scripts Nguyễn Thái Ngọc Duy
2015-03-18  9:55 ` [PATCH/WIP 8/8] Build in rebase Nguyễn Thái Ngọc Duy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1426672547-11369-1-git-send-email-pclouds@gmail.com \
    --to=pclouds@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).