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

Re: how to check remote git repo for updates without pull/fetch

From
James Cloos <cloos@jhcloos.com>
Date
Dec 21, 2008, 09:53 UTC
Message-ID
<m38wq9zwee.fsf@lugabout.jhcloos.org>
In-Reply-To
<402731c90812201541r510170tbe1d56b7261e8146@mail.gmail.com>
>>>>> "David" == David Aguilar <davvid@gmail.com> writes:

David> Your script will report false positives if you run that in a branch David> where you've made local commits since git log's output will list a David> commit that's not on the remote side.

Ah.  Yes.  I forgot to mention that.  Good catch.

I wrote the script specifically for use with the repos created by Gentoo's git eclass (used when installing packages from git repos rather than from tars or the like). As such, it only needed to deal with pristine clones.

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6
Previous: Boyd Stephen Smith Jr.
Message 7 of 7 in “how to check remote git repo for updates without pull/fetch”
  1. Ivan ZorinDec 19, 2008
  2. Shawn O. PearceDec 19, 2008
  3. Ivan ZorinDec 19, 2008
  4. James CloosDec 20, 2008
  5. David AguilarDec 20, 2008
  6. Boyd Stephen Smith Jr.Dec 21, 2008
  7. James CloosDec 21, 2008

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.