On Thu, Sep 18, 2008 at 09:31:24AM -0700, Anatol Pomozov wrote: > > Can you think of any other cases? > > git log?? > > git log --root for empty repo should not print anything (instead of > error message that we have now). I'm not sure that's the same as "--root", though. In existing --root cases, we are saying "pretend that beyond the initial commit, there is a commit that contains the empty tree". The logical extension of git-log here would be to print out that commit. Not to mention that "git log --root" _already_ has defined semantics (you just don't really need it since log.showroot defaults to true). I wonder if my patch is actually confusing things more, and the right solution is an option that says "pretend that a non-existant HEAD is a commit with no log and the empty tree." But I think that may just be confusing things more, because the semantics of such a null commit wouldn't be clear (e.g., git log would actually produce a little bit of output). Maybe it really is better to just force the caller to check the initial commit condition. It's more work for them, but the semantics are simple and unambiguous. > Should documentation (man-pages) reflect your changes as well? Yes, definitely. However, I'm not sure yet what the changes should _be_ (if any). -Peff -- 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