On Thu, Jun 19, 2008 at 03:52:00PM +0200, Pierre Habouzit wrote:
If you read the beginning of that thread, the original impetus was
people cloning repos that had dozens of branches, then doing a push.
If they hadn't recently done a fetch, they got dozens of lines of
"rejected".
Yeah, maybe it is not worth worrying about; I haven't actually measured
any performance issue. I'll try to look and see how painful it is to
combine the traversals.
It is a separate issue, but it is exacerbated by hiding stale refs.
Imagine:
$ git push
To /path/to/repo
! [rejected] master -> master (non-fast forward)
$ git push -f
To /path/to/repo
+ 0abfa88...c1ed93b master -> master (forced update)
+ 0329485...3498576 stale_branch -> stale_branch (forced update)
I think that is a nasty surprise to spring on an unsuspecting user.
Another solution might be "-f" not pushing rewound branches, but then we
need a way to specify "no, really, push this rewound branch". Perhaps
"-f -f"?
OK, I will try to take a look in the next few days.
-Peff
--
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