Junio C Hamano wrote:
When you exit before committing lockfiles
you hold, atexit handler rolls back and unlink them for you.
The following might be a better replacement.
By the way, by using lockfile's "create temporary, generate into
it and then rename to final", we are allowing an overwrite of an
existing bundle, which we did not allow earlier. Is this check
something we would want to preserve?
Ack - yours is much better. Thanks for the lesson. Also, the former
behavior of not allowing overwrite of an existing file was (at least in
my opinion) very un-git'ish so I am happy to see that go.
Mark
-
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