Community
Participate
Working Groups
I've created a small git hook that adds extra information to commit message before it's presented to the user. https://github.com/yacoob/git-last-fm This information is introduced as a comment line, to avoid forcing a comment if users doesn't add anything. If this extra information would be added as a normal line, git would detect it as user commit, and always commit files, despite user's intent. Now, if I use this hook with EGit, from Eclipse, the comment line gets stripped by EGit, and doesn't show up in the commit dialog. Easiest way to make that work, would be to add an option to EGit to preserve the comment lines from git itself. If you don't like that idea; can you tell me whether there's anything that EGit sets in the environment, that my hook can check for, to discover it's being run by Eclipse? If there's anything like that (environment variable?) I can use it to detect EGit and ditch the comment sign at the beginning of the line.
I don't understand. EGit currently does not support hooks, so how can it misinterpret the output of a hook?