Skip to content

Instantly share code, notes, and snippets.

@hkolbeck
Created August 2, 2016 22:56
Show Gist options
  • Select an option

  • Save hkolbeck/050cf7b7d3fda16a41ef4e95b2270ca2 to your computer and use it in GitHub Desktop.

Select an option

Save hkolbeck/050cf7b7d3fda16a41ef4e95b2270ca2 to your computer and use it in GitHub Desktop.

Revisions

  1. hkolbeck created this gist Aug 2, 2016.
    7 changes: 7 additions & 0 deletions copy-branch-poms.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    for pom in `git ls-tree -r --name-only --full-tree ${COMMIT} | grep 'pom.xml$'`; do
    DIR=`dirname ${pom}`
    if [ ${DIR} != '.' ]; then
    mkdir ${TMP_DIR}/${DIR}
    fi
    git show ${COMMIT}:${pom} > ${TMP_DIR}/${pom}
    done