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

git-pull (or cg-fetch?) with exit status

From
Randal L. Schwartz <merlyn@stonehenge.com>
Date
Oct 30, 2005, 13:24 UTC
Message-ID
<86fyqjt9w9.fsf@blue.stonehenge.com>

Other than grep the output of the "pull" commands, I'd like to have a flag added that will also set an exit status to "successful" if new things were pulled. That way, I can automate a "make install" resulting from a successful new pull, ala:

        git-pull --silent && make install
-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Next: Junio C Hamano
Message 1 of 3 in “git-pull (or cg-fetch?) with exit status”
  1. Randal L. SchwartzOct 30, 2005
  2. Junio C HamanoOct 30, 2005
  3. Randal L. SchwartzOct 30, 2005

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.