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

Re: I want "fast forward my workdir to upstream if it's safe"

From
Randal L. Schwartz <merlyn@stonehenge.com>
Date
May 7, 2009, 23:20 UTC
Message-ID
<86ljp8fqkp.fsf@blue.stonehenge.com>
In-Reply-To
<FC9BF880-D69F-4A56-B9FA-EF5BDBF73437@wincent.com>
>>>>> "Wincent" == Wincent Colaiuta <win@wincent.com> writes:
>> I want a *command* I can tell people in #git.
Wincent> "git status"?

Wincent> # On branch master Wincent> # Your branch is ahead of 'origin/master' by 46 commits. Wincent> # Wincent> # Changed but not updated: Wincent> # (use "git add <file>..." to update what will be committed) Wincent> # (use "git checkout -- <file>..." to discard changes in working directory) Wincent> # Wincent> # modified: foo Wincent> # Wincent> # Untracked files: Wincent> # (use "git add <file>..." to include in what will be committed) Wincent> # Wincent> # bar

Now, you expect them to parse that in a script? "git status" is porcelain, not plumbing, and can change from version to version, and has.

I want a command I can put in a cron job that Does The Right Thing.
-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
Previous: Wincent ColaiutaNext: Jeff King
Message 3 of 12 in “I want "fast forward my workdir to upstream if it's safe"”
  1. Randal L. SchwartzMay 7, 2009
  2. Wincent ColaiutaMay 7, 2009
  3. Randal L. SchwartzMay 7, 2009
  4. Jeff KingMay 8, 2009
  5. Andreas EricssonMay 8, 2009
  6. Jeff KingMay 8, 2009
  7. Eyvind BernhardsenMay 8, 2009
  8. Randal L. SchwartzMay 8, 2009
  9. Junio C HamanoMay 8, 2009
  10. Jakub NarebskiMay 8, 2009
  11. Eyvind BernhardsenMay 11, 2009
  12. Miles BaderMay 8, 2009

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.