On Sat, Dec 10, 2011 at 3:21 AM, Michael Schubert <mschub@xxxxxxxxxxxxx> wrote: > On 12/10/2011 11:29 AM, Hao wrote: >> I am writing a post-receive hook in Python that examines the content of some >> files (the HEAD rev). Because the repo is a bare one on the server. My current >> approach is to check out a working copy on the server and run 'git pull' in post- >> receive to get the most up-to-date version, and then process files in the >> working copy. > You can actually use a combination of git ls-files and git cat-file -p in order to list and look at te content of files on the remote without checking out an entire working tree. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html