git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Junio C Hamano
Message 5 of 5 in “ls-remote: add "--diff" option to show only refs that differ”
  1. ls-remote: add "--diff" option to show only refs that differLinus Torvalds, Feb 2, 2017
  2. Junio C HamanoFeb 2, 2017
  3. Linus TorvaldsFeb 2, 2017
  4. Junio C HamanoFeb 2, 2017
  5. Linus TorvaldsFeb 2, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.