git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: process committed files in post-receive hook

From
Alexey Shumkin <alex.crezoff@gmail.com>
Date
Dec 10, 2011, 21:31 UTC
Message-ID
<20111211013131.1a37bf08@zappedws>
In-Reply-To
<loom.20111210T111457-837@post.gmane.org>
> I have two questions. First, is there a way that I can access file
> content in a bare repo without checking out a working copy? 
$ git show <commit>:<filename>

e.g. for bare repo of Git the following command $ git show v1.7.8:Documentation/RelNotes/1.7.8.txt outputs --->8--- Git v1.7.8 Release Notes ========================

Updates since v1.7.7 --------------------

 * Some git-svn, git-gui, git-p4 (in contrib) and msysgit updates.
 * Updates to bash completion scripts.
--->8---
Previous: Ivan HeffnerNext: Neal Kreitzinger
Message 4 of 8 in “process committed files in post-receive hook”
  1. HaoDec 10, 2011
  2. Michael SchubertDec 10, 2011
  3. Ivan HeffnerDec 10, 2011
  4. Alexey ShumkinDec 10, 2011
  5. Neal KreitzingerDec 15, 2011
  6. Hao WangDec 15, 2011
  7. Jeff KingDec 15, 2011
  8. Hao WangDec 15, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.