This repository proposes the Authored-at Git trailer to describe the physical location at which the contents of a commit were written. Possible values include Home, <CompanyName> HQ, or Noisebridge.
prepare-commit-msg is a Git hook that adds the Authored-at trailer based on a user-specified map of network names to their locations.
- Edit
SSID_LOCATION_MAPto add your locations. - To add the hook to a single repo, copy it to
.git/hooks/prepare-commit-msgin that repo. - To use it globally, set
git config --global core.hooksPath path/to/this/folder
The included hook only works on macOS. To port it, edit getSSID. Please send a PR if you do this.