Re: [PATCH] Add git-save script
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:18
Nanako Shiraishi [off-list ref] writes:
Junio C Hamano [off-list ref] writes: ...quoted
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.