Replaced per-branch git log calls with a single git for-each-ref command using the ahead-behind atom. This optimizes the script from O(N) to O(1) git subprocess calls. Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>