git-email-contacts

email yourself patches from git-contacts
git clone git://jb55.com/git-email-contacts
Log | Files | Refs | README | LICENSE

commit 4a2b5246a6cb358c20a727ee2d3452b9450f0cbf
parent 11c14c6fe6d8ec69f293ffe84574fd31e6265846
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 23 Jun 2021 12:22:40 -0700

custom git-log ref args

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mgit-email-contacts | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/git-email-contacts b/git-email-contacts @@ -20,8 +20,10 @@ sys.stderr.write(f"finding new patches for {user}\n") def get_hashes(): cut -d "\t" --output-delimiter="\t" -f1 @(contacts_tsv) > @(tmp_file) +git_args = sys.argv[1:] if len(sys.argv) > 1 else ["--all"] + git fetch -git log --no-merges --all --format=%H | head -n1050 | sort > @(fresh_file) +git log --no-merges @(git_args) --format=%H | head -n1050 | sort > @(fresh_file) get_hashes() new_hashes = $(grep -Fxvf @(tmp_file) @(fresh_file)).split("\n")