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

Re: Problems using perl's Git.pm module

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 2, 2010, 17:51 UTC
Message-ID
<7vipzcrrk9.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20101202114003.GA26070@raven.wolf.lan>
Josef Wolf <jw@raven.inka.de> writes:
>   jw@raven:~/testrepos> git st
>   # On branch master
>   nothing to commit (working directory clean)
I take it that you have "alias.st.cmd = status".
Observe what this gives you:
    $ git st; echo $?

If you are running pre-1.7.0 version of git, I think "git status" was a synonym to "git commit --dry-run" and exited with non-zero status to signal the caller that there is nothing to commit, which is...

>   jw@raven:~/testrepos> ./test.pl
>   # On branch master
>   nothing to commit (working directory clean)
>   status failed w/ code 1 at ./test.pl line 9
...consistent with what we see here.
Previous: Jonathan NiederNext: Josef Wolf
Message 18 of 19 in “Problems using perl's Git.pm module”
  1. Josef WolfDec 2, 2010
  2. Ævar Arnfjörð BjarmasonDec 2, 2010
  3. Jonathan NiederDec 2, 2010
  4. Ævar Arnfjörð BjarmasonDec 2, 2010
  5. Junio C HamanoDec 2, 2010
  6. demerphqDec 2, 2010
  7. Jonathan NiederDec 2, 2010
  8. demerphqDec 2, 2010
  9. Git.pm: discourage casual useJonathan Nieder, Dec 2, 2010
  10. Junio C HamanoDec 2, 2010
  11. Jonathan NiederDec 2, 2010
  12. Josef WolfDec 3, 2010
  13. demerphqDec 3, 2010
  14. Junio C HamanoDec 2, 2010
  15. demerphqDec 2, 2010
  16. Josef WolfDec 3, 2010
  17. Jonathan NiederDec 3, 2010
  18. Junio C HamanoDec 2, 2010
  19. Josef WolfDec 3, 2010

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.