git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Documentation/githooks: mention pwd, $GIT_PREFIX
@ 2015-01-10  6:49 Richard Hansen
  2015-01-10  6:49 ` [PATCH 1/2] " Richard Hansen
  2015-01-10  6:49 ` [PATCH 2/2] t1020-subdirectory.sh: check hook " Richard Hansen
  0 siblings, 2 replies; 9+ messages in thread
From: Richard Hansen @ 2015-01-10  6:49 UTC (permalink / raw)
  To: git; +Cc: rhansen

A couple of patches to document and test that hooks are run from the
top-level directory and that GIT_PREFIX is set to the subdirectory
that Git was run from (like !aliases).

The new documentation is mostly lifted from the documentation for
alias.*.  I don't think the new documentation is perfectly clear, but
it's a start.  In particular, what does Git do for hook pwd and
GIT_PREFIX when it is run from within a bare repository?  Or from
within .git?  Or if GIT_WORK_TREE (--work-tree) and/or GIT_DIR
(--git-dir) are set?  Many of these same questions apply to !aliases,
so the documentation for alias.* should also be shored up.

-Richard


Richard Hansen (2):
  Documentation/githooks: mention pwd, $GIT_PREFIX
  t1020-subdirectory.sh: check hook pwd, $GIT_PREFIX

 Documentation/githooks.txt |  6 ++++++
 t/t1020-subdirectory.sh    | 34 ++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)

-- 
2.2.1

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

end of thread, other threads:[~2015-01-12 22:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-10  6:49 [PATCH 0/2] Documentation/githooks: mention pwd, $GIT_PREFIX Richard Hansen
2015-01-10  6:49 ` [PATCH 1/2] " Richard Hansen
2015-01-10  6:49 ` [PATCH 2/2] t1020-subdirectory.sh: check hook " Richard Hansen
2015-01-10  8:25   ` Johannes Sixt
2015-01-10 23:11     ` [PATCH v2 0/2] Documentation/githooks: mention " Richard Hansen
2015-01-10 23:11       ` [PATCH v2 1/2] " Richard Hansen
2015-01-12 19:56         ` Junio C Hamano
2015-01-10 23:11       ` [PATCH v2 2/2] t1020-subdirectory.sh: check hook " Richard Hansen
2015-01-12 22:38         ` Junio C Hamano

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).