Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| gittips [2021/09/09 17:39] – Committing with delta PiotrSmyrak | gittips [2023/03/13 14:24] (current) – Add a helper script for creating worktree for ports quarterly branch LiWenHsu | ||
|---|---|---|---|
| Line 25: | Line 25: | ||
| pretty = fuller | pretty = fuller | ||
| </ | </ | ||
| + | |||
| + | ==== dealing with pgp keys ==== | ||
| + | |||
| + | When updating pgp keys in the handbook, it's helpful to be able to confirm what actually changed to your key before committing. | ||
| + | |||
| + | Consider adding this stanza to your $HOME/ | ||
| + | |||
| + | < | ||
| + | [diff " | ||
| + | textconv = "f(){ gpg --list-packets < \" | ||
| + | </ | ||
| + | |||
| + | and this to / | ||
| + | |||
| + | < | ||
| + | *.key diff=gpg | ||
| + | </ | ||
| + | |||
| + | When you now "git diff" or "git show" in the doc repo, the base64 encoded blobs will be decoded to (slightly) more readable PGP packets. | ||
| ==== rewriting history ==== | ==== rewriting history ==== | ||
| Line 64: | Line 83: | ||
| cd freebsd-ports; | cd freebsd-ports; | ||
| cd freebsd-src; | cd freebsd-src; | ||
| + | </ | ||
| + | |||
| + | === Helper Scripts === | ||
| + | ports | ||
| + | |||
| + | < | ||
| + | #!/bin/sh | ||
| + | |||
| + | year=$(date +" | ||
| + | month=$(date +" | ||
| + | quarter=$(((month-1)/ | ||
| + | |||
| + | branch=" | ||
| + | |||
| + | git worktree add -b ${branch} ../ | ||
| </ | </ | ||