In Subversion, I can see what files would be affected by an update, without actually performing the update, with
svn status -u
Git doesn not have such a command. The usual suggestion for this problem is to do a fetch first. This is described here and here. The latter article also contains a nicely written explanation, why the fetch is necessary.
I stumbled today over a discussion of this theme which suggested a different approach, which is to use
git pull --dry-run
Now this makes me wonder:
- Does it really work? How can it do it without also doing a fetch?
- svn pull --help does NOT explain about the --dry-run switch, but if I use it, git does not complain that it is an illegal option either. Is this kind of "undocumented feature"?