git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Geoff Russell" <geoffrey.russell@gmail.com>
To: git@vger.kernel.org
Subject: collapsing commits with rebase
Date: Thu, 8 Jan 2009 10:38:44 +1030	[thread overview]
Message-ID: <93c3eada0901071608r190a723bma502b68c4ab81a08@mail.gmail.com> (raw)

Dear gits,

I have a series of commits:

    A---B---C---D---E---F

I want to collapse B---C---D into one single commit. git rebase -i B  will allow
me to do this, but I'm looking for a non-interactive incantation.

Cheers,
Geoff Russell


P.S. The context is a program that performs a single high level
operation on a repository
as a series of commits but then wants to turn  it back into a single
commit without
user intervention so it subsequently looks like a single op in the history.

             reply	other threads:[~2009-01-08  0:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-08  0:08 Geoff Russell [this message]
2009-01-08  0:45 ` collapsing commits with rebase Johannes Schindelin
2009-01-08  1:59   ` Geoff Russell
2009-01-08 11:07     ` Johannes Schindelin
2009-01-10 10:34       ` Geoff Russell
2009-01-08  2:11 ` Boyd Stephen Smith Jr.
2009-01-08  2:32   ` Miklos Vajna
2009-01-08  2:39     ` Boyd Stephen Smith Jr.
2009-01-08  9:49       ` Geoff Russell
2009-01-08  4:09   ` Sitaram Chamarty
2009-01-08  4:23     ` Boyd Stephen Smith Jr.
2009-01-10 10:26 ` nadim khemir

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=93c3eada0901071608r190a723bma502b68c4ab81a08@mail.gmail.com \
    --to=geoffrey.russell@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).