Sha256: 07d1bd00ad7d5ba17838fc72a77677ffb3f140b2eb47d502c528b8b1e078bf6c

Contents?: true

Size: 957 Bytes

Versions: 50

Compression:

Stored size: 957 Bytes

Contents

#!/usr/bin/env bash
# Git Pivotal Tracker Integration
# Copyright (c) 2013 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

CURRENT_BRANCH=$(git branch | grep "*" | sed "s/* //")
STORY_ID=$(git config branch.$CURRENT_BRANCH.pivotal-story-id)

if [[ $2 != "commit" && -n $STORY_ID ]]; then
	ORIG_MSG_FILE="$1"
	TEMP=$(mktemp /tmp/git-XXXXX)

	(printf "\n\n[#$STORY_ID]" ; cat "$1") > "$TEMP"
	cat "$TEMP" > "$ORIG_MSG_FILE"
fi

Version data entries

50 entries across 50 versions & 3 rubygems

Version Path
v2gpti-1.3.5 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
v2gpti-1.3.4 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
v2gpti-1.3.3 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
v2gpti-1.3.2 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
v2gpti-1.3.1 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
v2gpti-1.3.0 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
v2gpti-1.2.9 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
v2gpti-1.2.8 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
spire-git-pivotal-tracker-1.3.0 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
spire-git-pivotal-tracker-1.2.0 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
spire-git-pivotal-tracker-1.1.0 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
spire-git-pivotal-tracker-1.0.0 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
v2gpti-1.2.7 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
v2gpti-1.2.6 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
v2gpti-1.2.5 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
v2gpti-1.2.4 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
v2gpti-1.2.3 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
v2gpti-1.2.2 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
v2gpti-1.2.1 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh
v2gpti-1.2.0 lib/git-pivotal-tracker-integration/command/prepare-commit-msg.sh