Variable expansion is controlled by the .gitattributes file.
To enable variable expansion:
- pattern filter=NHtext merge=NHsubst
+ pattern NHSUBST
To disable variable expansion:
- pattern -filter
+ pattern -NHSUBST
More information: "git help gitattributes"
instead of "git add" or "git commit." Nothing terrible will happen if you
use the wrong one, but the values will not be updated.
- Due to the way this abuses git filters, the updated values are not visible
- in your working tree.
+ Variable expansion modifies the files in the work tree - your editor or
+ IDE may or may not be happy with this.
D. Using your own hooks
You can use your own hooks - put them in .git/hooks as usual BUT name them
Adds the changes you've made in (filename) to the pre-commit staging area.
(also referred to as the 'index')
+ OR
+Make a new file be tracked by git.
"nhadd" is the preferred syntax and will automatically update the source file
-headers with the latest date, branch, and version.
+headers with the latest date, branch, and version. See Developer.txt for
+details.
[*] git commit [-a] [-m "text"]
editor window for you to create one.
"nhcommit" is the preferred syntax and will automatically update the source file
-headers with the latest date, branch, and version.
+headers with the latest date, branch, and version. See Developer.txt for
+details.
[*] git push [--all] [-u origin (branch)]