Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[nebula-dev] git pre-commit hook for code format

Hi,

I use CTRL+F constantly. This gives large code changes when I commit
something that was formatted in a different style. I use the default
jdt style btw.

Is it possible (and desired) to run a pre commit hook that formats our
code before it hits the repo? I am looking for opinions and
experiences.

I found this:

http://www.blog.project13.pl/index.php/fun/1076/git-hacking-pre-commit-hook-and-custom-command/

Regards,

Wim


Back to the top