From: Kristis Makris <kristis.makris@asu.edu>
To: David Symonds <dsymonds@gmail.com>
Cc: jnareb@gmail.com, git@vger.kernel.org, scmbug-users@lists.mkgnu.net
Subject: Re: Git and Scmbug integration
Date: Tue, 13 Nov 2007 17:16:44 -0700 [thread overview]
Message-ID: <1194999404.4106.40.camel@localhost> (raw)
In-Reply-To: <ee77f5c20711131602m5b9042fx72689af53e24ddd2@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1713 bytes --]
On Wed, 2007-11-14 at 11:02 +1100, David Symonds wrote:
> On Nov 14, 2007 10:55 AM, Kristis Makris <kristis.makris@asu.edu> wrote:
> > On Wed, 2007-11-14 at 10:00 +1100, David Symonds wrote:
> > > > http://bugzilla.mkgnu.net/show_bug.cgi?id=991
> > > >
> > > > There's no hook that will trigger when a tag is applied.
> > >
> > > I believe the 'update' hook is run when the tag is pushed.
> >
> > Even if that is true, there no hook that will trigger when a local tag
> > is applied.
>
> Unannotated tags don't make a proper new object, only a ref. If you
> stick to annotated tags, you'll get new objects added which, I think,
> should trigger the post-commit hook.
I just tried again tagging with both:
$ git tag TAG_NAME
$ git tag -a TAG_NAME
and I don't get the post-commit hook executed.
Perhaps I missed something ?
> > I'd like the commit hook to provide enough information to be able to
> > tell which files were modified and their respective old/new version (or
> > perhaps their old/new SHA-1 hash). If the new SHA-1 hash can be used to
> > extract all that, that's ok with me. But right now there's nothing.
>
> If you have the new commit's SHA-1, it's very simple to get the parent
> commit's SHA-1 and do whatever you want. A complexity would be with
> handling merges, where a commit has multiple parents. If you have a
> commit SHA-1 hash, you can just "git diff --name-only <hash>^ <hash>"
> to get a list of the files changed by <hash>.
This sounds great. If the post-commit hook could now provide the new
commit SHA-1 hash than that should be what I need.
Can the new commit SHA-1 hash be added as a parameter to the post-commit
hook please ?
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-11-14 0:17 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-13 19:06 Git and Scmbug integration Kristis Makris
2007-11-13 23:00 ` David Symonds
2007-11-13 23:55 ` Kristis Makris
2007-11-14 0:02 ` David Symonds
2007-11-14 0:16 ` Kristis Makris [this message]
2007-11-14 0:27 ` David Symonds
2007-11-14 1:11 ` Junio C Hamano
2007-11-14 1:16 ` David Symonds
2007-11-14 1:27 ` Junio C Hamano
2007-11-14 1:09 ` Junio C Hamano
[not found] ` <7vtznppr8m.fsf-jO8aZxhGsIagbBziECNbOZn29agUkmeCHZ5vskTnxNA@public.gmane.org>
2008-08-13 9:23 ` Kristis Makris
2007-11-14 6:08 ` Martin Langhoff
2007-11-13 23:47 ` Alex Riesen
2007-11-13 23:53 ` David Symonds
2007-11-14 0:04 ` Alex Riesen
2007-11-14 0:08 ` David Symonds
2007-11-14 0:01 ` Kristis Makris
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=1194999404.4106.40.camel@localhost \
--to=kristis.makris@asu.edu \
--cc=dsymonds@gmail.com \
--cc=git@vger.kernel.org \
--cc=jnareb@gmail.com \
--cc=scmbug-users@lists.mkgnu.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.