Git development
 help / color / mirror / Atom feed
* git cherry-pick before archive
@ 2008-07-11 15:46 Denis Bueno
  2008-07-11 15:51 ` Johannes Schindelin
  0 siblings, 1 reply; 11+ messages in thread
From: Denis Bueno @ 2008-07-11 15:46 UTC (permalink / raw)
  To: Git Mailing List

Hi all,

I'm trying to use git archive to create a kind of "release" tarball of
my source.  I've got a patch (a commit) that I'd like to apply to the
tree before I call git archive on HEAD.  Currently my command is:

    git archive --format=tar --prefix=pfx/ HEAD | gzip > prj.tgz

If I were to actually modify my tree & history, I'd change the command to:

    git cherry-pick 97a1235ce674f7cf4df3129cd0ab1ae0793db392
    git archive --format=tar --prefix=pfx/ HEAD | gzip > prj.tgz
    git reset --hard HEAD^

But I'd rather not modify my history, if it's possible.  (This will
create a bunch of dangling commit objects over time, no?)

-- 
 Denis

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

end of thread, other threads:[~2008-07-11 22:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-11 15:46 git cherry-pick before archive Denis Bueno
2008-07-11 15:51 ` Johannes Schindelin
2008-07-11 16:09   ` Denis Bueno
2008-07-11 16:11     ` Miklos Vajna
2008-07-11 16:18       ` Denis Bueno
2008-07-11 18:25       ` Johannes Schindelin
2008-07-11 18:28         ` Denis Bueno
2008-07-11 18:46           ` Johannes Schindelin
2008-07-11 18:49             ` Denis Bueno
2008-07-11 18:53               ` Johannes Schindelin
2008-07-11 22:18   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox