Update lib.sh (#1203)

Changes behaviour of `sanitised_git_logs` to collate all changes when operating on separate branches.
7 jobs for master in 24 minutes and 57 seconds (queued for 2 seconds)