Fetch: Basic support for protocol v2 of the fetch-pack/upload-pack protocol. This protocol is described in the Git project in "Documentation/technical/protocol-v2.txt".
- 534847 AdvertiseRefsHook is not executed for v2, to be replaced by an appropriate hook
- change120007 support for shallow fetch using protocol v2 is not complete
Add protocol v2 support in jgit daemon
With this patch, a server spawned by jgit daemon can be accessed using protocol v2 from a Git client that supports it (for example, "git" with the appropriate patches, to be released with git 2.18). This is only activated if the repository's config has "protocol.version" be 2.
Store in IndexChangedEvent if it was caused by JGit itself
This allows to differentiate if index was changed by an external git command or by JGit itself.