From: Steven Grimm <koreth@midwinter.com>
To: Andreas Ericsson <ae@op5.se>
Cc: Junio C Hamano <gitster@pobox.com>,
Sam Vilain <sam.vilain@catalyst.net.nz>,
git@vger.kernel.org
Subject: Re: [PATCH] post-update hook: update working copy
Date: Fri, 02 Nov 2007 10:28:20 -0700 [thread overview]
Message-ID: <472B5E34.60709@midwinter.com> (raw)
In-Reply-To: <472AFD39.6000006@op5.se>
Andreas Ericsson wrote:
>> - Who guarantees that a human user is not actively editing the
>> work tree files without saving?
> There are times when one simply doesn't care.
>
> I realize that for my situation, a much simpler script can (and is)
> used, so
> I agree with your concerns. The idea that every git repo has a human
> hacking
> on it isn't true though, so doing things like this are sometimes useful,
> timesaving and a real help.
Yeah, that's absolutely true. My use cases would be twofold. First, a
public reference tree on a shared development server where people can
look over my corner of the code base without having to check the whole
thing out for themselves.
Second, a Web server with a bunch of static text/image files and PHP
scripts. If I can deploy by just pushing to a "current release" branch,
that saves me from having to first push then ssh to the machine and do
"git reset --hard".
Neither one of those things is impossible to do with vanilla git. They
just require extra busywork steps at the moment if you don't use an
"update the working copy on push" hook.
-Steve
prev parent reply other threads:[~2007-11-02 17:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-02 0:45 [PATCH] post-update hook: update working copy Sam Vilain
2007-11-02 1:02 ` Junio C Hamano
2007-11-02 3:36 ` Sam Vilain
2007-11-02 8:49 ` Junio C Hamano
2007-11-02 10:34 ` Andreas Ericsson
2007-11-02 17:28 ` Steven Grimm [this message]
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=472B5E34.60709@midwinter.com \
--to=koreth@midwinter.com \
--cc=ae@op5.se \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=sam.vilain@catalyst.net.nz \
/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).