Git magic links

I play with project workflows and Git, and I would like to find a good way to "talk" to the main repository.

One thing I'm curious about is to implement a magical link, such as the "for" used by Gerrit, where commits click on "refs / for / xxxx / topic" to set the final branch of the target without putting things directly there. Is there a way to do this with pre / post get hooks, is this our Java implementation feature?

Greetings

+5
source share
2 answers

refs/for/branchis the "magic" function of the Gerrit git server. As far as I know, there is no way to replicate it using default implementations of git-receive-packor git-http-server.

+2

@duskwuff, "" Gerrit, , git ( jgit).

, git . , :

  • update hook: - , ,
  • post-receive hook: ref, : git update-ref -d ${refname}

post-receive, .

post-receive , ref update script.

. , , ref , , , , , , git. , , .

, temp dir buildup docker. . ( ref, gerrit, )

0

All Articles