Some features we need or want, plus some neat ideas that may not be too feasible to implement.
-
Make exact RegEx branch ref match stronger than one with a "*" for pushers and forcers directive.
-
Once "post" method is sure to run, then move logger step from "pre" to "post".
-
Make sure ipc-parse can determine if action was actually performed or else the reason of why not.
-
Add [log.verbosity] 0 or 1 or 2 feature to control level of messaging spewage to the git client.
-
Add [acl.allowip] IP Whitelist feature
-
Add [acl.allowauthor] feature to whitelist Author Email or RegExp for all commits being pushed.
-
Two-Way Git "Proxy" support for remote git server to allow for slow migration of a repo from one system to another.
i.e., pre-read and pre-write to attempt importing remote repo first can quickly run "git pull --rebase ; git rebase --abort" from the server side?
and post-write can run "git push remote BRANCH" to sync up any fresh changes out to the remote repo.
-
Add support for automatic rotation of log.logfile, i.e:
- git config log.compress true (default false)
- git config log.{daily|weekly} true (default "weekly" is true)
- git config log.rotate 365 (default 5)
-
Provide branch, old hash, and new hash (for every branch updated by the git client) to post-read hook args (Requires man-in-the-middle sniffer)
- If nothing is updated to the client, then there will be no arguments to post-read.
- There will be a multiple of 3 args, each triple being branch, old hash, new hash, (depending on how many branches the client updates).
- In order to facilitate the InterProcessCommunication to post-read, information should be stored in $GIT_DIR/tmp/current-*-io/ until the post-read completes.
-
Determine files involved with the pull (Requires man-in-the-middle sniffer)
-
Provide branch, old hash, new hash, and common parent "fork" commit hash to pre-write hook and post-write hook args. (Requires man-in-the-middle sniffer)
- This fork hash can be used for debugging
- or for callback webhook.
- In order to facilitate the InterProcessCommunication between the pre-write and post-write, information should be stored in $GIT_DIR/last-write-state..txt until the post-write completes.
-
Determine files involved with the push
-
Add [restrictfile.___.pushers] support to block pushes including changes to specified files, except authorized "pushers"
- Only restrict WRITING certain files
- Not feasible to block READ of files
- EXAMPLE: git config restrictfile."lib/config.txt".pushers alice,bob
-
Fix git-deploy to handle split cheese case where git server uses both IPv4 and IPv6
-
[webhook] features for callback:
- support for pull/clone/fetch (setup proxy sniffer to scan for "want" and "have" packets from client to determine updates downloaded to the git client)
- Allow for WhiteList or BlackList filters to trigger webhook or ignore webhooks under certain conditions: : When specified branches are involved : When certain KEY users are involved : When coming from a specific IP or Network CIDR : When certain files are affected (tricky for pull reads) : When certain strings exist in any of the commit comments being pushed. (Tricky for pull reads.)
- provide failover queue retry mechanism fibinacci backoff until remote webhook server returns 2xx or 3xx status.
- provide epoch time stamp of client connection.
- provide type of reference pushing ("tag" or "branch").
- provide branch or tag affected by push or pull operation.
- provide PREV commit hash for the tag or branch
- provide whether or not FORCE was used to rewrite or destroy history
- at least provide when FORCE push destroys branch history : common fork point hash : list of commits that were destroyed
- for each NEW commit pushed and OLD commit destroyed back until $found_fork_commit_hash, provide:
: commit hash
: author name
: author email
: subject of commit excuse reason, i.e., (my $squish =
git show -s --format=\%s 665bd34
)=s{\s+}{ }g; $squish =s/\s+$//m; $squish =~ s<^(.{80}).{3,}><$1...>s; : files added : files modified : files removed - provide files affected for each commit
-
Get rid of all XMODIFIERS hacks, and use "-o" instead? WHOOPS! It seems the "-o" option can NOT be caught unless something is modified. The "git pull" needs to actually download something for the "-o" to work. The "git push" needs to actually push something for the "-o" to work. The "-o" more-supported method is not as general as the XMODIFIERS hack method. Maybe it's not feasible to use the "-o" for what I was hoping. So what? Why would the server need to read the "-o" option anyways if nothing changed? #1. For push and pull, the DEBUG flag is used to provide extra info to the client, which currently still works even if nothing is modified. #2. For pull, the deploy_patience setting is used in the pre-hook handler, which is impossible to obtain "-o" settings that early in the process.