Yes, I think that would make tons of sense.
I think that would make things a lot more flexible, and yes, it sounds
like a good idea.
HOWEVER.
I think it's not only very common, but quite useful, to do what we do now,
ie
git log origin..
to see "what is in origin but not in HEAD".
So there's a big usability issue: I don't think it's good to have to say
git log remotes/origin/master..
to do the same.
So from a usability standpoint, we'd have to teach "get_sha1()" about
parsing .git/remotes/* files if it cannot find a branch or a tag with that
name (which it wouldn't be able to, since even if it were to walk the
directories udner .git/refs/ recursively, it would be named "master"
there).
But if somebody does the get_sha1() magic, and Junio agrees, then I think
it would be a great thing to do.
Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html