All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Neal Kreitzinger" <neal@rsss.com>
To: git@vger.kernel.org
Subject: merge removed content back into current content
Date: Fri, 24 Sep 2010 22:06:10 -0500	[thread overview]
Message-ID: <i7jp1a$kc0$1@dough.gmane.org> (raw)

How do I tell git to merge a single program from an old commit into the 
current version of that program in the HEAD commit?  In this scenario, I 
want to get back some removed code but still keep the new code.

e.g.

Commit-1 = initial commit containing Program-A, and other programs

Commit-2 = add Changeset-1 to Program-A , and make changes to other programs

Commit-3 = remove Changeset-1 from Program-A, then add Changeset-2 to 
Program-A, and make changes to other programs

*desired* Commit-4 = only merge Program-A from Commit-2 into Program-A of 
Commit-3, and don't change any other programs
(in other words, get my old changes from Commit-2 back, but don't loose the 
new changes from Commit-3)

v/r,
Neal 

             reply	other threads:[~2010-09-25  3:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-25  3:06 Neal Kreitzinger [this message]
2010-09-25 23:43 ` merge removed content back into current content Elijah Newren
2010-09-27 18:31   ` Eric Raible
2010-09-28 16:26   ` Neal Kreitzinger
2010-09-28 16:49 ` Neal Kreitzinger

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='i7jp1a$kc0$1@dough.gmane.org' \
    --to=neal@rsss.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.