From b548dcf56e4c25127939c305ddd371f846c61ee8 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sat, 24 May 2025 11:11:57 -0700 Subject: [PATCH] add new_job command to push to new job --- new_job | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 new_job diff --git a/new_job b/new_job new file mode 100755 index 0000000..74a5fdc --- /dev/null +++ b/new_job @@ -0,0 +1,17 @@ +#!/bin/sh + +URL="$1" +NAME="$2" + +git branch "$NAME" +git config set branch."$NAME".pushremote=private +git config set branch."$NAME".remote=private +git checkout "$NAME" + +echo "{\"url\":\"$URL\",\"name\":\"$NAME\"}" > job_details.json + +links -dump "$1" > job_description.txt + +git add job_details.json +git add job_description.txt + -- 2.39.5