Re: [PATCH] ls-remote: add "--diff" option to show only refs that differ

2017-02-02 Thread Linus Torvalds
On Thu, Feb 2, 2017 at 1:05 PM, Junio C Hamano wrote: > > Another case I can think of that "--diff" would help is when you are > inspecting your own mirror (but that can be seen as a special case > of the "they have copies of yours plus their own", if you think of > your mirror

Re: [PATCH] ls-remote: add "--diff" option to show only refs that differ

2017-02-02 Thread Junio C Hamano
Linus Torvalds writes: > I basically don't see downstream contributor doing ls-remote, it's a > upstream maintainer command. > > But that may be a lack of imagination on my part. I actually share that perception. For the "downstream wonders about the state of the

Re: [PATCH] ls-remote: add "--diff" option to show only refs that differ

2017-02-02 Thread Linus Torvalds
On Thu, Feb 2, 2017 at 12:03 PM, Junio C Hamano wrote: > > Most downstream folks seem to care about refs/remotes/origin/$branch > and I think in that context "git ls-remote --diff [origin]" that > compares their refs/heads/* and refs/remotes/origin/* would make > sense. Hmm.

Re: [PATCH] ls-remote: add "--diff" option to show only refs that differ

2017-02-02 Thread Junio C Hamano
Linus Torvalds writes: > My main use of "git ls-remote" tends to be to check what the other end > has when some pull request goes wrong (they forgot to push, or they used > the wrong ref name or whatever), and it ends up being hard to see all > the relevant data

[PATCH] ls-remote: add "--diff" option to show only refs that differ

2017-02-02 Thread Linus Torvalds
From: Linus Torvalds <torva...@linux-foundation.org> Date: Thu, 2 Feb 2017 11:37:49 -0800 Subject: [PATCH] ls-remote: add "--diff" option to show only refs that differ My main use of "git ls-remote" tends to be to check what the other end has when some pull reque