Re: [PATCH] ls-remote: add "--diff" option to show only refs that differ
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Feb 2, 2017, 21:19 UTC
- Message-ID
- <CA+55aFy27uEXX2FfQB7q5SWAaV-E0etCrBf0MnFRzARb1P2CaA@mail.gmail.com>
- In-Reply-To
- <xmqqfujws3pl.fsf@gitster.mtv.corp.google.com>
On Thu, Feb 2, 2017 at 1:05 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 5 quoted lines
> > 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 as "them" and the difference is "being stale").
Yeah, that's actually what I did for some testing (not having stale branches, but just to check the expected differences for my upstream kernel repo with my local pulls that I haven't pushed out yet).
The actual real use-case is something that only happens for me only very occasionally. I end up sending out "did you forget to push" emails perhaps a couple of times every release, but every time I do I will have gone and done a ls-remote on their repo..
Linus