Jeff King <peff@xxxxxxxx> writes: > But what _would_ be useful is doing it atomically. You can certainly do > all three of those steps from within one "git push" invocation, and I > think that is enough without any protocol changes. The protocol already > sends for each ref a line like: > > <old-sha1> <new-sha1> <ref> > > and receive-pack will not proceed with the update unless the <old-sha1> > matches what is about to be changed. Be careful that using that information and doing things in one session won't give you atomicity in the sense that it may still fail after you said "yes that is what I want to push, really" to the confirmation question. It does save you an extra connection, compared to separate invocations without and then with --dry-run, so it still is a plus. I do not think this is an unreasonable option to have. Just please don't justify this change based on atomicity argument, but justify it as a mere convenience feature. -- 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