libgit2/libgit2 — pull request #683 by arrbee (2012-05-11 04:56:18+00:00)
Title: Improve repo initialization to be more like git

This adds a bunch of template files to the initialization for hooks, info/exclude, and description. This makes our initialized repo look more like core git. Specifically, this adds:

* `.git/description` identical to core git
* `info/exclude` all commented out, not identical to core git
* `hooks/README.sample` all commented out with a reference to `git help hooks` which is completely different than the many template hooks that core git puts in this directory

The description file is simple and just matches git's behavior. The other two are compromises, ensuring the that info and hooks directories are made and minimally populated, even though the files are simpler than what core git puts there.

I don't love the fact that this is all stored in #defines, but it seemed like the simplest way to get some quick template content written, and I did try to use minimalist templates relative to core git.

The one thing that's missing from this PR is any sort of test that checks for the presence of these various directories and files post-initialization. Since not of the files are required, I wasn't certain what to test, but I suppose it makes sense to have at least one test that verifies that the files get created properly when we initialize a repo.