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.