"Leo Razoumov" <slonik.az@xxxxxxxxx> writes: > I am curious why there is "git push --dry-run" and no "git fetch > --dry-run" nor "git pull --dry-run". It would make sense to keep > push/pull/fetch as symmetric as possible. There are things that are not implemented in git because they do not make sense, and there are things that are not implemented in git because nobody had itch to scratch for. To put it differently, we tend to implement only things that there are actual, demonstrated needs for from real world and only when the addition makes sense as a coherent part of the system. "fetch --dry-run" falls into the latter category. "push" is hard to undo because it affects the outside world, but "fetch" is only about your local object store and its remote tracking branches, so the need to have --dry-run mode to "push" was much more real than to the need for "fetch --dry-run" and was implemented. If you have the itch for the latter, I do not think anybody objects to it on the ground that such a feature does not make sense. Having said that, "fetch --dry-run" probably has little value in practice. You cannot tell how much data will be transferred before actually running a fetch, so it won't be a tool for you to decide if you can afford the time to run fetch now or do that later ("push --dry-run" will let you gain the necessary information for doing this this if your push is fast-forward, which should mostly be the case). The only information you would get is if an actual "fetch" will have any update to each of the branches you are tracking (so that's one bit per branch) and if you have a connection to the other end, and that is about it. -- 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