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

Re: [PATCH] Add git-save script

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 24, 2007, 19:45 UTC
Message-ID
<7vbqf5t9vm.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<200706241044.l5OAiMCB012492@mi0.bluebottle.com>
Nanako Shiraishi <nanako3@bluebottle.com> writes:
Show 9 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
> ...
>> When you say "#!/bin/sh", you are writing for the family of
>> generic Bourne shells, not specifically for korn nor bash.  For
>> example, dash is a fine POSIX shell, but does not grok function
>> noiseword.  When in doubt, please stay away from things not in
>> POSIX (e.g. function, [[, ]], ${parameter//pattern/string/}).
>
> Is there a good reference you can point me?
I usually look at this:
    http://www.opengroup.org/onlinepubs/000095399/

and click on "Shell and Utilities volume (XCU)", and compare it with "man bash".

> At first I wanted to do git-add . instead of git-add -u, but then I
> became worried that will add files that are not interesting such as
> temporary files.

As long as .gitignore is set up properly to ignore such generated files, that shouldn't be a problem.

Previous: Nanako ShiraishiNext: Junio C Hamano
Message 9 of 12 in “Add git-save script”
  1. Add git-save scriptNanako Shiraishi, Jun 23, 2007
  2. Johannes SchindelinJun 23, 2007
  3. Bill LearJun 23, 2007
  4. Johannes SchindelinJun 23, 2007
  5. しらいしななこJun 25, 2007
  6. Junio C HamanoJun 25, 2007
  7. Junio C HamanoJun 23, 2007
  8. Nanako ShiraishiJun 24, 2007
  9. Junio C HamanoJun 24, 2007
  10. Junio C HamanoJun 27, 2007
  11. しらいしななこJun 27, 2007
  12. Johannes SchindelinJun 25, 2007

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.