I am running git on Windows, and the below question applies when I'm committing to the local repository.
I have a requirement to substitute keywords in a program header when the file is committed. From what I am finding it looks like I need to use a filter. My plan is to have the filter run a shell script that uses sed to replace the keywords. The filter will be configured as: In .gitattributes add: *.c filter=subvalues The .gitattributes file is in the local repot .git directory. then run: git config --global filter.subvalues.clean *subvalues* git config --global filter.subvalues.smudge cat where *subvalues *is a shell script that uses sed to search and replace a string. I added a .c file, but the substitution did not seem to happen. How do I tell if git is running the subvalues script? -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/git-users/b02f7611-5042-4d54-a708-ef929439d073n%40googlegroups.com.