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
| #!/bin/bash | |
| # | |
| # A script to archive staged git changes using 7z. | |
| # | |
| # Passes the filenames of all staged files (excluding deletions) to 7zip for | |
| # archiving. Expects git and 7z to be installed and available on PATH. | |
| # | |
| # Usage | |
| # ./git-archive-staged-files.sh [archive_name] |
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
| import argparse | |
| import csv | |
| import pathlib | |
| import sys | |
| VERSION = '1.0.0' | |
| USAGE = f'python3 {sys.argv[0]} [-t seconds] label_file1 [label_file2 ...]' | |