]> git.madduck.net Git - code/myrepos.git/commit

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Refactor checking for (type of) Git repository
authormartin f. krafft <madduck@madduck.net>
Thu, 25 Oct 2007 20:41:12 +0000 (22:41 +0200)
committermartin f. krafft <madduck@madduck.net>
Thu, 25 Oct 2007 21:49:52 +0000 (23:49 +0200)
commitc20b454a225407e5c6b918cbb6e739b888b252ab
treed5a62aa3972bbc7ff3f993c596b1275173290c8b
parent36ce226caca56a82e8c56426c5bb9bfc47e9e642
Refactor checking for (type of) Git repository

lib now has two new functions:

is_git_repo returns 0/true if its argument is a git repository
get_git_repo_type return 0/true if its argument is a git repository and
  prints one of non-bare/bare/fake-bare to stdout

The mr function implementations now use these functions and have been
simplified. We also allow bare repositories with limited functionality.
mr