Re: Feature request: Allow extracting revisions into directories
- From
Sitaram Chamarty <sitaramc@gmail.com>
- Date
- Feb 5, 2013, 08:55 UTC
- Message-ID
- <CAMK1S_j_7MjuLoER8CGXhnEasu2XANcB9zkV7k=G_TUYXaw+Tg@mail.gmail.com>
- In-Reply-To
- <7v7gmo3tte.fsf@alter.siamese.dyndns.org>
On Mon, Feb 4, 2013 at 10:22 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 19 quoted lines
> Tomas Carnecky <tomas.carnecky@gmail.com> writes: > >> That's what `git checkout` is for. And I would even argue that it's the better >> choice in your situation because it would delete files from /var/www/foo which >> you have deleted in your repo. git archive|tar wouldn't do that. > > The point about removal is an interesting one. From that /var/www > location I guess that you are discussing some webapp, but if you let > it _write_ into it, you may also have to worry about how to handle > the case where an update from the source end that comes from the > checkout and an update by the webapp collide with each other. > > You also need to maintain the .git/index file that corresponds to > what should be in /var/www/foo/ if you go that route. > > Just to be sure, I am not saying "checkout" is an inappropriate > solution to whatever problem you are trying to solve. I am just > pointing out things you need to be aware of if you take that > approach.
http://sitaramc.github.com/the-list-and-irc/deploy.html is a fairly popular URL on #git, where the bot responds to "!deploy" with some text and this URL.
Just sayin'... :)