eclipse-jgit / jgit

JGit, the Java implementation of git
https://www.eclipse.org/jgit/
Other
121 stars 34 forks source link

Missing support of Git Hook prepare-commit-msg #71

Open remybcnes opened 1 month ago

remybcnes commented 1 month ago

Version

6.10

Operating System

Linux/Unix, MacOS, Windows

Bug description

Git hook prepare-commit-msg is officially defined and implemented since Git v2.32.0 (at least) : https://www.git-scm.com/docs/githooks/2.32.0

However, JGit does not support it, hence not being compliant with Git 2.32+.

Actual behavior

JGit does not support all Githooks, hence not being compliant with Git 2.32+. It is limited to the ones defined in https://github.com/eclipse-jgit/jgit/tree/stable-6.10/org.eclipse.jgit/src/org/eclipse/jgit/hooks

Expected behavior

Support of all client-side Githooks defined in https://www.git-scm.com/docs/githooks/

In particular, a mechanism allowing for commit messages preparation should be proposed.

Relevant log output

No response

Other information

No response