git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Nieder <jrnieder@gmail.com>
To: Klas Lindberg <klas.lindberg@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Create a new commit from patches without using any worktree?
Date: Tue, 26 Oct 2010 21:58:16 -0500	[thread overview]
Message-ID: <20101027025816.GA1338@burratino> (raw)
In-Reply-To: <AANLkTi=Xi13_0+bC-TVRP3uVDmGWVdM3a708=SSzCR88@mail.gmail.com>

Hi Klas,

Klas Lindberg wrote:

> Is there any way to record a new commit based on contents in a patch
> without going through a worktree?

Not sure if there a user-friendly way to do this, but if you are
scripting, I'd suggest looking into "git read-tree", "git apply
--cached", "git write-tree", "git commit-tree", and GIT_INDEX_FILE.

Hope that helps,
Jonathan

  reply	other threads:[~2010-10-27  2:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-27  1:49 Create a new commit from patches without using any worktree? Klas Lindberg
2010-10-27  2:58 ` Jonathan Nieder [this message]
2010-10-27  9:07 ` Johannes Sixt
2010-10-27 10:28   ` Bert Wesarg
2010-10-27 15:20   ` Klas Lindberg

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=20101027025816.GA1338@burratino \
    --to=jrnieder@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=klas.lindberg@gmail.com \
    /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).