git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* pre-commit hook question
@ 2014-06-14 17:34 Nick Dimov
  2014-06-16 18:23 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Nick Dimov @ 2014-06-14 17:34 UTC (permalink / raw)
  To: git

Hello everyone.
Im struggling for a couple of hours to make git store metadata of the
files using metastore and I use hooks/pre-commit for this. The problem
is that the script is invoked correctly, and modifies the file
"metadata" but the file itself is not added into commit. I tried calling
"git add metadata" and "git add -u metadata" but there is no effect. The
file ends up uncommited and marked as modified or staged BUT not
commited, ever.

Is there any way to make this work?
Basically, I want it to update and commit the file "metadata" on each
commit.
(then i want to make the same on checkout, but first i need to make
storing work correctly)

Thanks!

P.S. If you are wondering why I need this, the answer is I store OS
files for an embedded device which needs permisions/suid flags etc.

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

* Re: pre-commit hook question
  2014-06-14 17:34 pre-commit hook question Nick Dimov
@ 2014-06-16 18:23 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2014-06-16 18:23 UTC (permalink / raw)
  To: Nick Dimov; +Cc: git

Nick Dimov <dimovnike@gmail.com> writes:

> Im struggling for a couple of hours to make git store metadata of the
> files using metastore and I use hooks/pre-commit for this.

The pre-commit hook is about checking if the commits being created
is sensible and rejecting otherwise, and it is not designed to allow
futzing what is recorded behind the user's back.

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

end of thread, other threads:[~2014-06-16 18:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-14 17:34 pre-commit hook question Nick Dimov
2014-06-16 18:23 ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).