This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Array of branch names that you want to include | |
$excludeBranches = @("main", "develop", "feature1", "hotfix1") | |
# Retrieve all local branches using git command | |
$allBranches = git branch --format="%(refname:short)" | |
# Convert the output into an array | |
$allBranchesArray = $allBranches -split "`n" | |
# Filter the branches based on whether they are in the specified array |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# 2023 version of https://gist.github.com/tomdottom/b017244a221f8076c4b0adc6feeeb921 | |
# I added 3 new fields (sentBytes, URL, Connect) and used etree instead | |
import csv | |
import sys | |
from pprint import pprint | |
import xml.etree.ElementTree as ET |