From: Yves Orton Date: Thu, 1 Jan 2009 16:36:35 +0000 (+0100) Subject: modified make_patchnum.sh script X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=166a466fb1666ac00cde800e4385dc95621e2ea5;p=p5sagit%2Fp5-mst-13.2.git modified make_patchnum.sh script --- diff --git a/make_patchnum.sh b/make_patchnum.sh index a00e121..2d3f093 100644 --- a/make_patchnum.sh +++ b/make_patchnum.sh @@ -14,6 +14,7 @@ existing_unpushed=`cat unpushed.h 2>/dev/null` unpushed_commits='/*no-op*/' if [ -s ".patch" ] ; then + # this is the minimal expectation for the read branch snapshot_created commit_id describe < .patch changed="" extra_info="git_snapshot_date='$snapshot_created'" @@ -25,7 +26,6 @@ elif [ -d ".git" ]; then changed=`git diff-index --name-only HEAD` describe=`git describe --tags` commit_created=`git log -1 --pretty='format:%ci'` - new_patchnum="describe: $describe" extra_info="git_commit_date='$commit_created'" if [ -n "$branch" ] && [ -n "$remote" ]; then unpushed_commit_list=`git cherry $remote/$branch | awk 'BEGIN{ORS=","} /\+/ {print $2}' | sed -e 's/,$//'` @@ -40,14 +40,26 @@ git_unpushed='$unpushed_commit_list'" fi fi - if [ -n "$changed" ]; then - changed="true" - commit_title="Derived from:" - new_patchnum="$new_patchnum +else + cat <