Bug 570991 - Gitflow AVH Hook Support
Summary: Gitflow AVH Hook Support
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: Gitflow (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-06 09:37 EST by Max Hohenegger CLA
Modified: 2021-02-06 10:25 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max Hohenegger CLA 2021-02-06 09:37:21 EST
The Gitflow AVH edition [1] allows using hook scripts [2] to customize Gitflow operations.
For example a hook script for "post hotfix publish" could create a merge request for the changes.

EGit should use the same hook script directory configuration so that Eclipse and command line execution behave the same way.


Hook are implemented via JGit [3].
Running the hooks via FS.runHookIfPresent() is currently only implemented in FS_Posix [4]

[1] https://github.com/petervanderdoes/gitflow-avh
[2] https://github.com/petervanderdoes/gitflow-avh/tree/develop/hooks
[3] https://git.eclipse.org/r/plugins/gitiles/jgit/jgit/+/refs/heads/master/org.eclipse.jgit/src/org/eclipse/jgit/hooks/GitHook.java
[4] https://git.eclipse.org/r/plugins/gitiles/jgit/jgit/+/refs/heads/master/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java?autodive=0%2F%2F#268
Comment 1 Eclipse Genie CLA 2021-02-06 10:25:05 EST
New Gerrit change created: https://git.eclipse.org/r/c/egit/egit/+/175918