From: "Josh England" <jjengla@sandia.gov>
To: "Junio C Hamano" <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Add post-merge hook.
Date: Tue, 04 Sep 2007 14:32:55 -0600 [thread overview]
Message-ID: <1188937975.6192.59.camel@beauty> (raw)
In-Reply-To: <7vodgimc53.fsf@gitster.siamese.dyndns.org>
On Tue, 2007-09-04 at 13:03 -0700, Junio C Hamano wrote:
> >> >> * Do you want to run the post-merge hook even for a squash
> >> >> merge?
> >> >
> >> > Yes. I'd like to run it at any time that the working tree might be
> >> > updated.
> >>
> >> If that is the case, perhaps your hook may want to get a
> >> parameter to tell it what kind of "git-merge" invocation it was?
> >> Squash merge does not even advance the HEAD and is of a very
> >> different nature from a normal merge.
> >
> > OK. Should it just pass in a flag (squash or normal), or are there
> > other merge types it should need to know about.
>
> I suspect you have thought abuot the issues involved longer than
> I have ;-), so you should take whatever I say with grain of
> salt, but I think you would also want to know fast-forwards and
> up-to-dates if the hook wants to be generic, not "for Josh's
> workflow only".
Generic is great, I'm just trying to figure out when/why someone would
need to know the exact type of merge operation used. The hook should be
generic, yet not require an end user to know any git internals not
explicitly mentioned in the git-merge man page. I'm thinking that it
will be sufficient to pass a flag indicating whether the working tree
has been modified or not. The flag can be set for normal merge and
fast-forward merges, and unset for up-to-dates and squash merges. I
don't really know git internals myself. Am I missing anything?
-JE
next prev parent reply other threads:[~2007-09-04 20:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-30 22:40 [PATCH] Add post-merge hook jjengla
2007-08-30 23:07 ` Junio C Hamano
2007-09-04 16:25 ` Josh England
2007-09-04 17:25 ` Junio C Hamano
2007-09-04 19:36 ` Josh England
2007-09-04 20:03 ` Junio C Hamano
2007-09-04 20:32 ` Josh England [this message]
2007-09-04 20:52 ` Steven Grimm
2007-09-04 21:23 ` Josh England
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=1188937975.6192.59.camel@beauty \
--to=jjengla@sandia.gov \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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