git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* merge removed content back into current content
@ 2010-09-25  3:06 Neal Kreitzinger
  2010-09-25 23:43 ` Elijah Newren
  2010-09-28 16:49 ` Neal Kreitzinger
  0 siblings, 2 replies; 5+ messages in thread
From: Neal Kreitzinger @ 2010-09-25  3:06 UTC (permalink / raw)
  To: git

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 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-09-28 16:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-25  3:06 merge removed content back into current content Neal Kreitzinger
2010-09-25 23:43 ` Elijah Newren
2010-09-27 18:31   ` Eric Raible
2010-09-28 16:26   ` Neal Kreitzinger
2010-09-28 16:49 ` Neal Kreitzinger

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).