Skip to content

Instantly share code, notes, and snippets.

View DomGarguilo's full-sized avatar
🎯
Focusing

Dom G. DomGarguilo

🎯
Focusing
  • ASRC Federal
  • Maryland
View GitHub Profile
@ctubbsii
ctubbsii / git-diffTests
Created April 26, 2022 18:17
git-diffTests : create a Maven command line with -Dtest= and -Dit.test= for changed tests
#! /usr/bin/bash
function findTests() {
{
echo 'blah'
git diff --name-only "$2" | grep "$1[.]java" | xargs -n1 basename 2>/dev/null | cut -f1 -d.
} | paste -sd,
}
if [[ -z $1 ]]; then