Thread (3 messages) 3 messages, 3 authors, 2016-06-15

Re: why no "git fetch --dry-run" ?

From: Miklos Vajna <hidden>
Date: 2016-06-15 22:45:41

On Fri, Nov 21, 2008 at 04:41:57PM -0500, Leo Razoumov [off-list ref] wrote:
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.
For example, I just want to see which branches, if any, changed on a
remote repository since my last fetch. "git fetch -v --dry-run" would
be handy in this case.
Actually fetch - at a core level - isn't symmetric to push, the protocol
is completely different. I haven't checked the source, but I suppose
that the push protocol has "dry run" support, while the fetch one
doesn't have.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help