Fredrik Gustafsson <iveqy@xxxxxxxxx> writes: >> I wonder if we want a new option to "git rev-parse" so that we can say >> >> git rev-parse --is-well-formed-git-dir init/.git >> >> to perform these checks without exposing the implimentation detail. > > How about using > (cd <repo>; git rev-parse --verify HEAD" >/dev/null) > instead? Can the <repo> be without any commit, i.e. just after created? -- 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