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